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 files109
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- 88pm860x-ts.c
- Kconfig
- Makefile
- ad7877.c
- ad7879-i2c.c
- ad7879-spi.c
- ad7879.c
- ad7879.h
- ads7846.c
- ar1021_i2c.c
- atmel_mxt_ts.c
- auo-pixcir-ts.c
- bcm_iproc_tsc.c
- bu21013_ts.c
- bu21029_ts.c
- chipone_icn8318.c
- chipone_icn8505.c
- colibri-vf50-ts.c
- cy8ctmg110_ts.c
- cyttsp4_core.c
- cyttsp4_core.h
- cyttsp4_i2c.c
- cyttsp4_spi.c
- cyttsp_core.c
- cyttsp_core.h
- cyttsp_i2c.c
- cyttsp_i2c_common.c
- cyttsp_spi.c
- da9034-ts.c
- da9052_tsi.c
- dynapro.c
- edt-ft5x06.c
- eeti_ts.c
- egalax_ts.c
- egalax_ts_serial.c
- ektf2127.c
- elants_i2c.c
- elo.c
- exc3000.c
- fsl-imx25-tcq.c
- fujitsu_ts.c
- goodix.c
- gunze.c
- hampshire.c
- hideep.c
- hp680_ts_input.c
- htcpen.c
- ili210x.c
- imx6ul_tsc.c
- inexio.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/input/touchscreen/tsc2004.c
C · 2,261 bytes/*
* TSC2004 touchscreen driver
*
* Copyright (C) 2015 QWERTY Embedded Design
* Copyright (C) 2015 EMAC Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <linux/module.h>
#include <linux/input.h>
#include <linux/of.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include "tsc200x-core.h"
static const struct input_id tsc2004_input_id = {
.bustype = BUS_I2C,
.product = 2004,
};
static int tsc2004_cmd(struct device *dev, u8 cmd)
{
u8 tx = TSC200X_CMD | TSC200X_CMD_12BIT | cmd;
s32 data;
struct i2c_client *i2c = to_i2c_client(dev);
data = i2c_smbus_write_byte(i2c, tx);
if (data < 0) {
dev_err(dev, "%s: failed, command: %x i2c error: %d\n",
__func__, cmd, data);
return data;
}
return 0;
}
static int tsc2004_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
{
return tsc200x_probe(&i2c->dev, i2c->irq, &tsc2004_input_id,
devm_regmap_init_i2c(i2c, &tsc200x_regmap_config),
tsc2004_cmd);
}
static int tsc2004_remove(struct i2c_client *i2c)
{
return tsc200x_remove(&i2c->dev);
}
static const struct i2c_device_id tsc2004_idtable[] = {
{ "tsc2004", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, tsc2004_idtable);
#ifdef CONFIG_OF
static const struct of_device_id tsc2004_of_match[] = {
{ .compatible = "ti,tsc2004" },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, tsc2004_of_match);
#endif
static struct i2c_driver tsc2004_driver = {
.driver = {
.name = "tsc2004",
.of_match_table = of_match_ptr(tsc2004_of_match),
.pm = &tsc200x_pm_ops,
},
.id_table = tsc2004_idtable,
.probe = tsc2004_probe,
.remove = tsc2004_remove,
};
module_i2c_driver(tsc2004_driver);
MODULE_AUTHOR("Michael Welling <[email protected]>");
MODULE_DESCRIPTION("TSC2004 Touchscreen Driver");
MODULE_LICENSE("GPL");