[PATCH 2.4] nwflash.c -EFAULT retcode

From: O.Sezer
Date: Fri Aug 13 2004 - 14:03:47 EST


missing -EFAULT retcode in nwflash.c, from 2.6

Özkan Sezer

--- 27rc5~/drivers/char/nwflash.c 2004-08-07 14:02:42.000000000 +0300
+++ 27rc5/drivers/char/nwflash.c 2004-08-07 14:18:04.000000000 +0300
@@ -159,7 +159,8 @@
if (ret == 0) {
ret = count;
*ppos = p + count;
- }
+ } else
+ ret = -EFAULT;
up(&nwflash_sem);
}
return ret;