mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
adm80211: return an error if adm8211_alloc_rings() fails
We accidentally return success when adm8211_alloc_rings() fails but we
should preserve the error code.
Fixes: cc0b88cf5e
("[PATCH] Add adm8211 802.11b wireless driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
ae3cf47645
commit
c705a6b3aa
@ -1863,7 +1863,8 @@ static int adm8211_probe(struct pci_dev *pdev,
|
||||
priv->rx_ring_size = rx_ring_size;
|
||||
priv->tx_ring_size = tx_ring_size;
|
||||
|
||||
if (adm8211_alloc_rings(dev)) {
|
||||
err = adm8211_alloc_rings(dev);
|
||||
if (err) {
|
||||
printk(KERN_ERR "%s (adm8211): Cannot allocate TX/RX ring\n",
|
||||
pci_name(pdev));
|
||||
goto err_iounmap;
|
||||
|
Loading…
Reference in New Issue
Block a user