Re: [PATCH] leds: trigger: ledtrig-backlight: Fix invalid memory access in fb_event notification callback

2013-08-29 Thread Manfred Schlaegl
On 2013-08-27 02:51, Bryan Wu wrote: > On Tue, Aug 13, 2013 at 4:17 AM, Manfred Schlaegl > wrote: >> fb_notifier_callback is called on any event fired by fb_notifier_call_chain. >> Events may, or may not contain some data (fb_event.data). >> In case of FB_EVENT_BLANK fb_event.data contains a poin

Re: [PATCH] leds: trigger: ledtrig-backlight: Fix invalid memory access in fb_event notification callback

2013-08-26 Thread Bryan Wu
On Tue, Aug 13, 2013 at 4:17 AM, Manfred Schlaegl wrote: > fb_notifier_callback is called on any event fired by fb_notifier_call_chain. > Events may, or may not contain some data (fb_event.data). > In case of FB_EVENT_BLANK fb_event.data contains a pointer to an integer > holding the blank state

[PATCH] leds: trigger: ledtrig-backlight: Fix invalid memory access in fb_event notification callback

2013-08-13 Thread Manfred Schlaegl
fb_notifier_callback is called on any event fired by fb_notifier_call_chain. Events may, or may not contain some data (fb_event.data). In case of FB_EVENT_BLANK fb_event.data contains a pointer to an integer holding the blank state. The Problem is, that in ledtrig-backlight.c - fb_notifier_callb