Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files101
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- Kconfig
- Makefile
- TODO
- basic_types.h
- drv_types.h
- ethernet.h
- hal_init.c
- ieee80211.c
- ieee80211.h
- mlme_linux.c
- mlme_osdep.h
- mp_custom_oid.h
- os_intfs.c
- osdep_intf.h
- osdep_service.h
- recv_linux.c
- recv_osdep.h
- rtl8712_bitdef.h
- rtl8712_cmd.c
- rtl8712_cmd.h
- rtl8712_cmdctrl_bitdef.h
- rtl8712_cmdctrl_regdef.h
- rtl8712_debugctrl_bitdef.h
- rtl8712_debugctrl_regdef.h
- rtl8712_edcasetting_bitdef.h
- rtl8712_edcasetting_regdef.h
- rtl8712_efuse.c
- rtl8712_efuse.h
- rtl8712_event.h
- rtl8712_fifoctrl_bitdef.h
- rtl8712_fifoctrl_regdef.h
- rtl8712_gp_bitdef.h
- rtl8712_gp_regdef.h
- rtl8712_hal.h
- rtl8712_interrupt_bitdef.h
- rtl8712_io.c
- rtl8712_led.c
- rtl8712_macsetting_bitdef.h
- rtl8712_macsetting_regdef.h
- rtl8712_powersave_bitdef.h
- rtl8712_powersave_regdef.h
- rtl8712_ratectrl_bitdef.h
- rtl8712_ratectrl_regdef.h
- rtl8712_recv.c
- rtl8712_recv.h
- rtl8712_regdef.h
- rtl8712_security_bitdef.h
- rtl8712_spec.h
- rtl8712_syscfg_bitdef.h
- rtl8712_syscfg_regdef.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/staging/rtl8712/rtl8712_io.c
C · 3,099 bytes/******************************************************************************
* rtl8712_io.c
*
* Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
* Linux device driver for RTL8192SU
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* 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.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
* Modifications for inclusion into the Linux staging tree are
* Copyright(c) 2010 Larry Finger. All rights reserved.
*
* Contact information:
* WLAN FAE <[email protected]>.
* Larry Finger <[email protected]>
*
******************************************************************************/
#define _RTL8712_IO_C_
#include "osdep_service.h"
#include "drv_types.h"
#include "rtl871x_io.h"
#include "osdep_intf.h"
#include "usb_ops.h"
u8 r8712_read8(struct _adapter *adapter, u32 addr)
{
struct intf_hdl *hdl = &adapter->pio_queue->intf;
return hdl->io_ops._read8(hdl, addr);
}
u16 r8712_read16(struct _adapter *adapter, u32 addr)
{
struct intf_hdl *hdl = &adapter->pio_queue->intf;
return hdl->io_ops._read16(hdl, addr);
}
u32 r8712_read32(struct _adapter *adapter, u32 addr)
{
struct intf_hdl *hdl = &adapter->pio_queue->intf;
return hdl->io_ops._read32(hdl, addr);
}
void r8712_write8(struct _adapter *adapter, u32 addr, u8 val)
{
struct intf_hdl *hdl = &adapter->pio_queue->intf;
hdl->io_ops._write8(hdl, addr, val);
}
void r8712_write16(struct _adapter *adapter, u32 addr, u16 val)
{
struct intf_hdl *hdl = &adapter->pio_queue->intf;
hdl->io_ops._write16(hdl, addr, val);
}
void r8712_write32(struct _adapter *adapter, u32 addr, u32 val)
{
struct intf_hdl *hdl = &adapter->pio_queue->intf;
hdl->io_ops._write32(hdl, addr, val);
}
void r8712_read_mem(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
{
struct intf_hdl *hdl = &adapter->pio_queue->intf;
if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
return;
hdl->io_ops._read_mem(hdl, addr, cnt, pmem);
}
void r8712_write_mem(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
{
struct intf_hdl *hdl = &adapter->pio_queue->intf;
hdl->io_ops._write_mem(hdl, addr, cnt, pmem);
}
void r8712_read_port(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
{
struct intf_hdl *hdl = &adapter->pio_queue->intf;
if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
return;
hdl->io_ops._read_port(hdl, addr, cnt, pmem);
}
void r8712_write_port(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
{
struct intf_hdl *hdl = &adapter->pio_queue->intf;
hdl->io_ops._write_port(hdl, addr, cnt, pmem);
}