Title: [5981] trunk/drivers/video/bfin_adv7393fb.c: Fix return val handling.
- Revision
- 5981
- Author
- hennerich
- Date
- 2009-01-09 03:13:03 -0600 (Fri, 09 Jan 2009)
Log Message
Fix return val handling. copy_from_user returns number of bytes that could not be copied. On success, this will be zero
Modified Paths
Diff
Modified: trunk/drivers/video/bfin_adv7393fb.c (5980 => 5981)
--- trunk/drivers/video/bfin_adv7393fb.c 2009-01-09 09:08:06 UTC (rev 5980)
+++ trunk/drivers/video/bfin_adv7393fb.c 2009-01-09 09:13:03 UTC (rev 5981)
@@ -535,7 +535,7 @@
ret = copy_from_user(line, buffer, count);
if (ret)
- return ret;
+ return -EFAULT;
val = simple_strtoul(line, NULL, 0);
adv7393_write(drv->i2c_adv7393_client, val >> 8, val & 0xff);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits