Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
20 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files151
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- 8255.c
- 8255.h
- 8255_pci.c
- Makefile
- addi_apci_1032.c
- addi_apci_1500.c
- addi_apci_1516.c
- addi_apci_1564.c
- addi_apci_16xx.c
- addi_apci_2032.c
- addi_apci_2200.c
- addi_apci_3120.c
- addi_apci_3501.c
- addi_apci_3xxx.c
- addi_tcw.h
- addi_watchdog.c
- addi_watchdog.h
- adl_pci6208.c
- adl_pci7x3x.c
- adl_pci8164.c
- adl_pci9111.c
- adl_pci9118.c
- adq12b.c
- adv_pci1710.c
- adv_pci1720.c
- adv_pci1723.c
- adv_pci1724.c
- adv_pci1760.c
- adv_pci_dio.c
- aio_aio12_8.c
- aio_iiro_16.c
- amcc_s5933.h
- amplc_dio200.c
- amplc_dio200.h
- amplc_dio200_common.c
- amplc_dio200_pci.c
- amplc_pc236.c
- amplc_pc236.h
- amplc_pc236_common.c
- amplc_pc263.c
- amplc_pci224.c
- amplc_pci230.c
- amplc_pci236.c
- amplc_pci263.c
- c6xdigio.c
- cb_das16_cs.c
- cb_pcidas.c
- cb_pcidas64.c
- cb_pcidda.c
- cb_pcimdas.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/staging/comedi/drivers/ni_daq_dio24.c
C · 2,330 bytes// SPDX-License-Identifier: GPL-2.0+
/*
* Comedi driver for National Instruments PCMCIA DAQ-Card DIO-24
* Copyright (C) 2002 Daniel Vecino Castel <[email protected]>
*
* PCMCIA crap at end of file is adapted from dummy_cs.c 1.31
* 2001/08/24 12:13:13 from the pcmcia package.
* The initial developer of the pcmcia dummy_cs.c code is David A. Hinds
* <[email protected]>. Portions created by David A. Hinds
* are Copyright (C) 1999 David A. Hinds. All Rights Reserved.
*/
/*
* Driver: ni_daq_dio24
* Description: National Instruments PCMCIA DAQ-Card DIO-24
* Author: Daniel Vecino Castel <[email protected]>
* Devices: [National Instruments] PCMCIA DAQ-Card DIO-24 (ni_daq_dio24)
* Status: ?
* Updated: Thu, 07 Nov 2002 21:53:06 -0800
*
* This is just a wrapper around the 8255.o driver to properly handle
* the PCMCIA interface.
*/
#include <linux/module.h>
#include "../comedi_pcmcia.h"
#include "8255.h"
static int dio24_auto_attach(struct comedi_device *dev,
unsigned long context)
{
struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
struct comedi_subdevice *s;
int ret;
link->config_flags |= CONF_AUTO_SET_IO;
ret = comedi_pcmcia_enable(dev, NULL);
if (ret)
return ret;
dev->iobase = link->resource[0]->start;
ret = comedi_alloc_subdevices(dev, 1);
if (ret)
return ret;
/* 8255 dio */
s = &dev->subdevices[0];
return subdev_8255_init(dev, s, NULL, 0x00);
}
static struct comedi_driver driver_dio24 = {
.driver_name = "ni_daq_dio24",
.module = THIS_MODULE,
.auto_attach = dio24_auto_attach,
.detach = comedi_pcmcia_disable,
};
static int dio24_cs_attach(struct pcmcia_device *link)
{
return comedi_pcmcia_auto_config(link, &driver_dio24);
}
static const struct pcmcia_device_id dio24_cs_ids[] = {
PCMCIA_DEVICE_MANF_CARD(0x010b, 0x475c), /* daqcard-dio24 */
PCMCIA_DEVICE_NULL
};
MODULE_DEVICE_TABLE(pcmcia, dio24_cs_ids);
static struct pcmcia_driver dio24_cs_driver = {
.name = "ni_daq_dio24",
.owner = THIS_MODULE,
.id_table = dio24_cs_ids,
.probe = dio24_cs_attach,
.remove = comedi_pcmcia_auto_unconfig,
};
module_comedi_pcmcia_driver(driver_dio24, dio24_cs_driver);
MODULE_AUTHOR("Daniel Vecino Castel <[email protected]>");
MODULE_DESCRIPTION(
"Comedi driver for National Instruments PCMCIA DAQ-Card DIO-24");
MODULE_LICENSE("GPL");