diff options
-rw-r--r-- | drivers/char/isicom.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c index 91b978445229..783a7ec0a8e6 100644 --- a/drivers/char/isicom.c +++ b/drivers/char/isicom.c | |||
@@ -1709,6 +1709,11 @@ static int __devinit load_firmware(struct pci_dev *pdev, | |||
1709 | } | 1709 | } |
1710 | 1710 | ||
1711 | data = kmalloc(word_count * 2, GFP_KERNEL); | 1711 | data = kmalloc(word_count * 2, GFP_KERNEL); |
1712 | if (data == NULL) { | ||
1713 | dev_err(&pdev->dev, "Card%d, firmware upload " | ||
1714 | "failed, not enough memory\n", index + 1); | ||
1715 | goto errrelfw; | ||
1716 | } | ||
1712 | inw(base); | 1717 | inw(base); |
1713 | insw(base, data, word_count); | 1718 | insw(base, data, word_count); |
1714 | InterruptTheCard(base); | 1719 | InterruptTheCard(base); |