projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fbdev/fb_notify: fix blank_mode pointer crash
[firefly-linux-kernel-4.4.55.git]
/
arch
/
arm
/
mach-rockchip
/
ddr_freq.c
diff --git
a/arch/arm/mach-rockchip/ddr_freq.c
b/arch/arm/mach-rockchip/ddr_freq.c
index 470587b22efda502e63c9e0172d9f3197277401f..ea229d7aeafd55e210d36ca81b7dece9871d1e5c 100644
(file)
--- a/
arch/arm/mach-rockchip/ddr_freq.c
+++ b/
arch/arm/mach-rockchip/ddr_freq.c
@@
-782,10
+782,9
@@
static int ddr_freq_suspend_notifier_call(struct notifier_block *self,
unsigned long action, void *data)
{
struct fb_event *event = data;
unsigned long action, void *data)
{
struct fb_event *event = data;
- int blank_mode = *((int *)event->data);
if (action == FB_EARLY_EVENT_BLANK) {
if (action == FB_EARLY_EVENT_BLANK) {
- switch (
blank_mode
) {
+ switch (
*((int *)event->data)
) {
case FB_BLANK_UNBLANK:
rockchip_clear_system_status(SYS_STATUS_SUSPEND);
break;
case FB_BLANK_UNBLANK:
rockchip_clear_system_status(SYS_STATUS_SUSPEND);
break;
@@
-794,7
+793,7
@@
static int ddr_freq_suspend_notifier_call(struct notifier_block *self,
}
}
else if (action == FB_EVENT_BLANK) {
}
}
else if (action == FB_EVENT_BLANK) {
- switch (
blank_mode
) {
+ switch (
*((int *)event->data)
) {
case FB_BLANK_POWERDOWN:
rockchip_set_system_status(SYS_STATUS_SUSPEND);
break;
case FB_BLANK_POWERDOWN:
rockchip_set_system_status(SYS_STATUS_SUSPEND);
break;