patch-2.0.35 linux/drivers/scsi/scsi_proc.c
Next file: linux/drivers/scsi/sd.c
Previous file: linux/drivers/scsi/scsi.h
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Mon Jul 13 13:47:34 1998
- Orig file:
v2.0.34/linux/drivers/scsi/scsi_proc.c
- Orig date:
Mon Aug 11 13:37:24 1997
diff -u --recursive --new-file v2.0.34/linux/drivers/scsi/scsi_proc.c linux/drivers/scsi/scsi_proc.c
@@ -175,9 +175,9 @@
if (!buf || !cmdList) /* bad input ? */
return(NULL);
- if ((handle = (parseHandle*) kmalloc(sizeof(parseHandle), 1)) == 0)
+ if ((handle = (parseHandle*) kmalloc(sizeof(parseHandle), GFP_KERNEL)) == 0)
return(NULL); /* out of memory */
- if ((handle->cmdPos = (char**) kmalloc(sizeof(int), cmdNum)) == 0) {
+ if ((handle->cmdPos = (char**) kmalloc(sizeof(int) * cmdNum, GFP_KERNEL)) == 0) {
kfree(handle);
return(NULL); /* out of memory */
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov