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
/
tty
/
isicom.c
diff --git
a/drivers/tty/isicom.c
b/drivers/tty/isicom.c
index bdd3027ef01b6d4dbfdf9cd40f2923410cd82a8f..8d96e86966f1b5ddf2bb43067a4899ee1d4653f4 100644
(file)
--- a/
drivers/tty/isicom.c
+++ b/
drivers/tty/isicom.c
@@
-1477,7
+1477,7
@@
static int load_firmware(struct pci_dev *pdev,
goto errrelfw;
}
- data = kmalloc
(word_count *
2, GFP_KERNEL);
+ data = kmalloc
_array(word_count,
2, GFP_KERNEL);
if (data == NULL) {
dev_err(&pdev->dev, "Card%d, firmware upload "
"failed, not enough memory\n", index + 1);