patch-2.4.13 linux/drivers/sbus/char/jsflash.c

Next file: linux/drivers/sbus/char/sab82532.c
Previous file: linux/drivers/sbus/char/bpp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/drivers/sbus/char/jsflash.c linux/drivers/sbus/char/jsflash.c
@@ -453,7 +453,7 @@
 
 	switch (cmd) {
 	case BLKGETSIZE:
-		return put_user(jsfd_bytesizes[dev] >> 9, (long *) arg);
+		return put_user(jsfd_bytesizes[dev] >> 9, (unsigned long *) arg);
 	case BLKGETSIZE64:
 		return put_user(jsfd_bytesizes[dev], (u64 *) arg);
 

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