git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: kmalloc() -> kmalloc_array()
[sfrench/cifs-2.6.git]
/
arch
/
um
/
drivers
/
ubd_kern.c
diff --git
a/arch/um/drivers/ubd_kern.c
b/arch/um/drivers/ubd_kern.c
index dcf5ea28a2815803977cc12757aa4b2c21a70e13..83c470364dfb34dce51320322e9b119c10157f3e 100644
(file)
--- a/
arch/um/drivers/ubd_kern.c
+++ b/
arch/um/drivers/ubd_kern.c
@@
-1127,9
+1127,9
@@
static int __init ubd_init(void)
return -1;
}
return -1;
}
- irq_req_buffer = kmalloc
(
-
sizeof(struct io_thread_req *) * UBD_REQ_BUFFER_SIZE
,
- GFP_KERNEL
+ irq_req_buffer = kmalloc
_array(UBD_REQ_BUFFER_SIZE,
+
sizeof(struct io_thread_req *)
,
+
GFP_KERNEL
);
irq_remainder = 0;
);
irq_remainder = 0;
@@
-1137,9
+1137,9
@@
static int __init ubd_init(void)
printk(KERN_ERR "Failed to initialize ubd buffering\n");
return -1;
}
printk(KERN_ERR "Failed to initialize ubd buffering\n");
return -1;
}
- io_req_buffer = kmalloc
(
-
sizeof(struct io_thread_req *) * UBD_REQ_BUFFER_SIZE
,
- GFP_KERNEL
+ io_req_buffer = kmalloc
_array(UBD_REQ_BUFFER_SIZE,
+
sizeof(struct io_thread_req *)
,
+
GFP_KERNEL
);
io_remainder = 0;
);
io_remainder = 0;