patch-2.2.14 linux/drivers/sbus/char/openprom.c

Next file: linux/drivers/sbus/char/pcikbd.c
Previous file: linux/drivers/sbus/audio/dbri.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.13/linux/drivers/sbus/char/openprom.c linux/drivers/sbus/char/openprom.c
@@ -209,7 +209,7 @@
 				     buf, len);
 		restore_flags(flags);
 
-		if (error <= 0)
+		if (error < 0)
 			error = -EINVAL;
 		break;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)