From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:10 +0000 (+0200) Subject: lcd: BKL pushdown X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=600bf8140c22e473ef0806ae45214aaaf53e0da3;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git lcd: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/char/lcd.c b/drivers/char/lcd.c index 4fe9206f84de..1c29b20e4f4c 100644 --- a/drivers/char/lcd.c +++ b/drivers/char/lcd.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -414,6 +415,8 @@ static int lcd_ioctl(struct inode *inode, struct file *file, static int lcd_open(struct inode *inode, struct file *file) { + cycle_kernel_lock(); + if (!lcd_present) return -ENXIO; else