projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kmalloc() -> kmalloc_array()
[linux-block.git]
/
drivers
/
scsi
/
aacraid
/
aachba.c
diff --git
a/drivers/scsi/aacraid/aachba.c
b/drivers/scsi/aacraid/aachba.c
index e7961cbd2c55ab81020084730e8ec19f45aeda7d..a9831bd37a73d52462489d025c1631a576ca2fbc 100644
(file)
--- a/
drivers/scsi/aacraid/aachba.c
+++ b/
drivers/scsi/aacraid/aachba.c
@@
-4132,7
+4132,7
@@
static int aac_convert_sgraw2(struct aac_raw_io2 *rio2, int pages, int nseg, int
if (aac_convert_sgl == 0)
return 0;
- sge = kmalloc
(nseg_new *
sizeof(struct sge_ieee1212), GFP_ATOMIC);
+ sge = kmalloc
_array(nseg_new,
sizeof(struct sge_ieee1212), GFP_ATOMIC);
if (sge == NULL)
return -ENOMEM;