patch-2.4.14 linux/drivers/pcmcia/ds.c
Next file: linux/drivers/pcmcia/i82092.c
Previous file: linux/drivers/pcmcia/Makefile
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
Thu Oct 25 13:53:47 2001
-  Orig file: 
v2.4.13/linux/drivers/pcmcia/ds.c
-  Orig date: 
Tue Oct  9 17:06:52 2001
diff -u --recursive --new-file v2.4.13/linux/drivers/pcmcia/ds.c linux/drivers/pcmcia/ds.c
@@ -640,8 +640,8 @@
 	if (signal_pending(current))
 	    return -EINTR;
     }
-    put_user(get_queued_event(user), (int *)buf);
-    return 4;
+
+    return put_user(get_queued_event(user), (int *)buf) ? -EFAULT : 4;
 } /* ds_read */
 
 /*====================================================================*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)