Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files221
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- 88pm800.c
- 88pm805.c
- 88pm80x.c
- 88pm860x-core.c
- 88pm860x-i2c.c
- Kconfig
- Makefile
- aat2870-core.c
- ab3100-core.c
- ab3100-otp.c
- ab8500-core.c
- ab8500-debugfs.c
- ab8500-gpadc.c
- ab8500-sysctrl.c
- abx500-core.c
- ac100.c
- act8945a.c
- adp5520.c
- altera-a10sr.c
- arizona-core.c
- arizona-i2c.c
- arizona-irq.c
- arizona-spi.c
- arizona.h
- as3711.c
- as3722.c
- asic3.c
- atmel-flexcom.c
- atmel-hlcdc.c
- atmel-smc.c
- axp20x-i2c.c
- axp20x-rsb.c
- axp20x.c
- bcm590xx.c
- bd9571mwv.c
- cros_ec.c
- cros_ec_dev.c
- cros_ec_dev.h
- cs47l24-tables.c
- cs47l35-tables.c
- cs47l85-tables.c
- cs47l90-tables.c
- cs5535-mfd.c
- da903x.c
- da9052-core.c
- da9052-i2c.c
- da9052-irq.c
- da9052-spi.c
- da9055-core.c
- da9055-i2c.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/mfd/tps65912-spi.c
C · 2,216 bytes/*
* SPI access driver for TI TPS65912x PMICs
*
* Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
* Andrew F. Davis <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
* kind, whether expressed or implied; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License version 2 for more details.
*
* Based on the TPS65218 driver and the previous TPS65912 driver by
* Margarita Olaya Cabrera <[email protected]>
*/
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/spi/spi.h>
#include <linux/mfd/tps65912.h>
static const struct of_device_id tps65912_spi_of_match_table[] = {
{ .compatible = "ti,tps65912", },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, tps65912_spi_of_match_table);
static int tps65912_spi_probe(struct spi_device *spi)
{
struct tps65912 *tps;
tps = devm_kzalloc(&spi->dev, sizeof(*tps), GFP_KERNEL);
if (!tps)
return -ENOMEM;
spi_set_drvdata(spi, tps);
tps->dev = &spi->dev;
tps->irq = spi->irq;
tps->regmap = devm_regmap_init_spi(spi, &tps65912_regmap_config);
if (IS_ERR(tps->regmap)) {
dev_err(tps->dev, "Failed to initialize register map\n");
return PTR_ERR(tps->regmap);
}
return tps65912_device_init(tps);
}
static int tps65912_spi_remove(struct spi_device *spi)
{
struct tps65912 *tps = spi_get_drvdata(spi);
return tps65912_device_exit(tps);
}
static const struct spi_device_id tps65912_spi_id_table[] = {
{ "tps65912", 0 },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(spi, tps65912_spi_id_table);
static struct spi_driver tps65912_spi_driver = {
.driver = {
.name = "tps65912",
.of_match_table = tps65912_spi_of_match_table,
},
.probe = tps65912_spi_probe,
.remove = tps65912_spi_remove,
.id_table = tps65912_spi_id_table,
};
module_spi_driver(tps65912_spi_driver);
MODULE_AUTHOR("Andrew F. Davis <[email protected]>");
MODULE_DESCRIPTION("TPS65912x SPI Interface Driver");
MODULE_LICENSE("GPL v2");