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 files29
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- Kconfig
- Makefile
- devices-common.h
- devices.c
- platform-fec.c
- platform-flexcan.c
- platform-fsl-usb2-udc.c
- platform-gpio-mxc.c
- platform-gpio_keys.c
- platform-imx-dma.c
- platform-imx-fb.c
- platform-imx-i2c.c
- platform-imx-keypad.c
- platform-imx-ssi.c
- platform-imx-uart.c
- platform-imx2-wdt.c
- platform-imx21-hcd.c
- platform-imx27-coda.c
- platform-ipu-core.c
- platform-mx2-camera.c
- platform-mx2-emma.c
- platform-mxc-ehci.c
- platform-mxc-mmc.c
- platform-mxc_nand.c
- platform-mxc_rtc.c
- platform-mxc_w1.c
- platform-pata_imx.c
- platform-sdhci-esdhc-imx.c
- platform-spi_imx.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/arm/mach-imx/devices/platform-mxc_rtc.c
C · 1,247 bytes/*
* Copyright (C) 2010-2011 Pengutronix
* Uwe Kleine-Koenig <[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.
*/
#include "../hardware.h"
#include "devices-common.h"
#define imx_mxc_rtc_data_entry_single(soc, _devid) \
{ \
.devid = _devid, \
.iobase = soc ## _RTC_BASE_ADDR, \
.irq = soc ## _INT_RTC, \
}
#ifdef CONFIG_SOC_IMX31
const struct imx_mxc_rtc_data imx31_mxc_rtc_data __initconst =
imx_mxc_rtc_data_entry_single(MX31, "imx21-rtc");
#endif /* ifdef CONFIG_SOC_IMX31 */
#ifdef CONFIG_SOC_IMX35
const struct imx_mxc_rtc_data imx35_mxc_rtc_data __initconst =
imx_mxc_rtc_data_entry_single(MX35, "imx21-rtc");
#endif /* ifdef CONFIG_SOC_IMX35 */
struct platform_device *__init imx_add_mxc_rtc(
const struct imx_mxc_rtc_data *data)
{
struct resource res[] = {
{
.start = data->iobase,
.end = data->iobase + SZ_16K - 1,
.flags = IORESOURCE_MEM,
}, {
.start = data->irq,
.end = data->irq,
.flags = IORESOURCE_IRQ,
},
};
return imx_add_platform_device(data->devid, -1,
res, ARRAY_SIZE(res), NULL, 0);
}