diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-11-19 15:36:25 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-11-19 18:49:58 -0800 |
commit | b3b4dc8840a8fdbe495723d35cd976d781fd42fa (patch) | |
tree | 4cacf1e1b4c4f71906ff888bcf2b0acc4022bf3c /block/blk-merge.c | |
parent | c267fd777a478d74fa8959628538b64088f67fd2 (diff) |
lcd: fix oops if driver only interested in .set_power
The LCD driver core calls LCD drivers when either the blanking state or
the display mode has changed, but does not make any check to see if the
called driver has a .set_mode method.
This means if a driver only has a .set_power method then the system will
OOPS on changing mode (and with the console semaphore held so you cannot
easily see the problem).
Fix the problem by ensuring that either callback is valid before use.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/blk-merge.c')
0 files changed, 0 insertions, 0 deletions