]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: panel: fix regression in lcd_write
authorBastien Armand <armand.bastien@laposte.net>
Wed, 23 Apr 2014 17:42:11 +0000 (19:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 11:33:56 +0000 (20:33 +0900)
This patch fix a regression in lcd_write caused by commit
70a8c3eb8546cefe40fb0bc7991e8899b7b91075

Signed-off-by: Bastien Armand <armand.bastien@laposte.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/panel/panel.c

index 136671a50d6e54ce08007422d0c4335d0ad4fd5d..acd4b8e013d285d78ddb7b2e7ff7c5d4b7c360c9 100644 (file)
@@ -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);