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