diff options
Diffstat (limited to 'drivers/net/arcnet/com20020-pci.c')
-rw-r--r-- | drivers/net/arcnet/com20020-pci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net/arcnet/com20020-pci.c index 2d956cb59d06..01cab9548785 100644 --- a/drivers/net/arcnet/com20020-pci.c +++ b/drivers/net/arcnet/com20020-pci.c | |||
@@ -225,8 +225,10 @@ static int com20020pci_probe(struct pci_dev *pdev, | |||
225 | 225 | ||
226 | card = devm_kzalloc(&pdev->dev, sizeof(struct com20020_dev), | 226 | card = devm_kzalloc(&pdev->dev, sizeof(struct com20020_dev), |
227 | GFP_KERNEL); | 227 | GFP_KERNEL); |
228 | if (!card) | 228 | if (!card) { |
229 | return -ENOMEM; | 229 | ret = -ENOMEM; |
230 | goto out_port; | ||
231 | } | ||
230 | 232 | ||
231 | card->index = i; | 233 | card->index = i; |
232 | card->pci_priv = priv; | 234 | card->pci_priv = priv; |