patch-2.1.106 linux/drivers/scsi/scsi_proc.c
Next file: linux/drivers/scsi/sr_ioctl.c
Previous file: linux/drivers/scsi/scsi_obsolete.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Sat Jun 13 12:10:31 1998
- Orig file:
v2.1.105/linux/drivers/scsi/scsi_proc.c
- Orig date:
Mon Feb 23 18:12:07 1998
diff -u --recursive --new-file v2.1.105/linux/drivers/scsi/scsi_proc.c linux/drivers/scsi/scsi_proc.c
@@ -184,9 +184,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