Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files61
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- ge/
- xics/
- xive/
- 6xx-suspend.S
- Kconfig
- Makefile
- cpm1.c
- cpm2.c
- cpm2_pic.c
- cpm2_pic.h
- cpm_common.c
- cpm_gpio.c
- dart.h
- dart_iommu.c
- dcr-low.S
- dcr.c
- ehv_pic.c
- fsl_85xx_cache_ctlr.h
- fsl_85xx_cache_sram.c
- fsl_85xx_l2ctlr.c
- fsl_gtm.c
- fsl_lbc.c
- fsl_mpic_err.c
- fsl_mpic_timer_wakeup.c
- fsl_msi.c
- fsl_msi.h
- fsl_pci.c
- fsl_pci.h
- fsl_pmc.c
- fsl_rcpm.c
- fsl_rio.c
- fsl_rio.h
- fsl_rmu.c
- fsl_soc.c
- fsl_soc.h
- grackle.c
- i8259.c
- indirect_pci.c
- ipic.c
- ipic.h
- micropatch.c
- mmio_nvram.c
- mpc5xxx_clocks.c
- mpic.c
- mpic.h
- mpic_msgr.c
- mpic_msi.c
- mpic_timer.c
- mpic_u3msi.c
- msi_bitmap.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/powerpc/sysdev/mpc5xxx_clocks.c
C · 731 bytes// SPDX-License-Identifier: GPL-2.0
/**
* mpc5xxx_get_bus_frequency - Find the bus frequency for a device
* @node: device node
*
* Returns bus frequency (IPS on MPC512x, IPB on MPC52xx),
* or 0 if the bus frequency cannot be found.
*/
#include <linux/kernel.h>
#include <linux/of_platform.h>
#include <linux/export.h>
#include <asm/mpc5xxx.h>
unsigned long mpc5xxx_get_bus_frequency(struct device_node *node)
{
const unsigned int *p_bus_freq = NULL;
of_node_get(node);
while (node) {
p_bus_freq = of_get_property(node, "bus-frequency", NULL);
if (p_bus_freq)
break;
node = of_get_next_parent(node);
}
of_node_put(node);
return p_bus_freq ? *p_bus_freq : 0;
}
EXPORT_SYMBOL(mpc5xxx_get_bus_frequency);