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 files30
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Kconfig
- Makefile
- common.h
- emev2.h
- headsmp-apmu.S
- headsmp-scu.S
- headsmp.S
- platsmp-apmu.c
- platsmp-scu.c
- platsmp.c
- pm-rcar-gen2.c
- pm-rmobile.c
- pm-rmobile.h
- r8a7779.h
- rcar-gen2.h
- regulator-quirk-rcar-gen2.c
- setup-emev2.c
- setup-r7s72100.c
- setup-r8a73a4.c
- setup-r8a7740.c
- setup-r8a7778.c
- setup-r8a7779.c
- setup-rcar-gen2.c
- setup-sh73a0.c
- sh73a0.h
- smp-emev2.c
- smp-r8a7779.c
- smp-sh73a0.c
- suspend.c
- timer.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/arm/mach-shmobile/suspend.c
C · 1,037 bytes/*
* Suspend-to-RAM support code for SH-Mobile ARM
*
* Copyright (C) 2011 Magnus Damm
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#include <linux/pm.h>
#include <linux/suspend.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/cpu.h>
#include <asm/io.h>
#include <asm/system_misc.h>
#include "common.h"
static int shmobile_suspend_default_enter(suspend_state_t suspend_state)
{
cpu_do_idle();
return 0;
}
static int shmobile_suspend_begin(suspend_state_t state)
{
cpu_idle_poll_ctrl(true);
return 0;
}
static void shmobile_suspend_end(void)
{
cpu_idle_poll_ctrl(false);
}
struct platform_suspend_ops shmobile_suspend_ops = {
.begin = shmobile_suspend_begin,
.end = shmobile_suspend_end,
.enter = shmobile_suspend_default_enter,
.valid = suspend_valid_only_mem,
};
int __init shmobile_suspend_init(void)
{
suspend_set_ops(&shmobile_suspend_ops);
return 0;
}