Commit 1fdc7630 authored by Sjur Brændeland's avatar Sjur Brændeland Committed by David S. Miller

caif-hsi: Add missing return in error path

Fix a missing return, causing access to freed memory.
Signed-off-by: default avatarSjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3935600a
...@@ -1178,6 +1178,7 @@ int cfhsi_probe(struct platform_device *pdev) ...@@ -1178,6 +1178,7 @@ int cfhsi_probe(struct platform_device *pdev)
dev_err(&ndev->dev, "%s: Registration error: %d.\n", dev_err(&ndev->dev, "%s: Registration error: %d.\n",
__func__, res); __func__, res);
free_netdev(ndev); free_netdev(ndev);
return -ENODEV;
} }
/* Add CAIF HSI device to list. */ /* Add CAIF HSI device to list. */
spin_lock(&cfhsi_list_lock); spin_lock(&cfhsi_list_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment