Skip to contentSkip to conversation

nwflash.c -EFAULT retcode

PATCH New O.Sezer 1 participant 1 message Aug 13, 2004 Char and misc drivers

lore
Share & tools
lore

O.Sezer

author
#0 lore raw

PATCH 1/1 nwflash.c -EFAULT retcode

missing -EFAULT retcode in nwflash.c, from 2.6

Özkan Sezer

drivers/char/nwflash.c +2 -1
@@ -159,7 +159,8 @@
 		if (ret == 0) {
 			ret = count;
 			*ppos = p + count;
-		}
+		} else
+			ret = -EFAULT;
 		up(&nwflash_sem);
 	}
 	return ret;