staging: panel: fix regression in lcd_write

This patch fix a regression in lcd_write caused by commit
70a8c3eb85

Signed-off-by: Bastien Armand <armand.bastien@laposte.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Bastien Armand 2014-04-23 19:42:11 +02:00 committed by Greg Kroah-Hartman
parent d901aaa723
commit 6a4193a276

View 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);