diff options
-rw-r--r-- | drivers/crypto/cavium/nitrox/nitrox_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/crypto/cavium/nitrox/nitrox_main.c b/drivers/crypto/cavium/nitrox/nitrox_main.c index 9ccefb9b7232..fee7cb2ce747 100644 --- a/drivers/crypto/cavium/nitrox/nitrox_main.c +++ b/drivers/crypto/cavium/nitrox/nitrox_main.c | |||
@@ -513,8 +513,10 @@ static int nitrox_probe(struct pci_dev *pdev, | |||
513 | pci_set_master(pdev); | 513 | pci_set_master(pdev); |
514 | 514 | ||
515 | ndev = kzalloc(sizeof(*ndev), GFP_KERNEL); | 515 | ndev = kzalloc(sizeof(*ndev), GFP_KERNEL); |
516 | if (!ndev) | 516 | if (!ndev) { |
517 | err = -ENOMEM; | ||
517 | goto ndev_fail; | 518 | goto ndev_fail; |
519 | } | ||
518 | 520 | ||
519 | pci_set_drvdata(pdev, ndev); | 521 | pci_set_drvdata(pdev, ndev); |
520 | ndev->pdev = pdev; | 522 | ndev->pdev = pdev; |