From: Bastien Armand Date: Wed, 23 Apr 2014 17:42:11 +0000 (+0200) Subject: staging: panel: fix regression in lcd_write X-Git-Tag: firefly_0821_release~176^2~3465^2~39^2~550 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6a4193a276f7c976487956c38789d5becc9256e5;p=firefly-linux-kernel-4.4.55.git staging: panel: fix regression in lcd_write This patch fix a regression in lcd_write caused by commit 70a8c3eb8546cefe40fb0bc7991e8899b7b91075 Signed-off-by: Bastien Armand Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c index 136671a50d6e..acd4b8e013d2 100644 --- a/drivers/staging/panel/panel.c +++ b/drivers/staging/panel/panel.c @@ -1324,7 +1324,7 @@ static ssize_t lcd_write(struct file *file, that need some CPU */ schedule(); - if (get_user(c, buf)) + if (get_user(c, tmp)) return -EFAULT; lcd_write_char(c);