summaryrefslogtreecommitdiff
path: root/drivers/staging/panel
diff options
context:
space:
mode:
authorBastien Armand <armand.bastien@laposte.net>2014-04-23 19:42:11 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-23 20:33:56 +0900
commit6a4193a276f7c976487956c38789d5becc9256e5 (patch)
tree55942ee549a668ee647a432fb0342d5c463d04c8 /drivers/staging/panel
parentd901aaa723a7ea4601b0984534dde70adc81a38c (diff)
staging: panel: fix regression in lcd_write
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>
Diffstat (limited to 'drivers/staging/panel')
-rw-r--r--drivers/staging/panel/panel.c2
1 files changed, 1 insertions, 1 deletions
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);