projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
557bc7d
)
net: ena: Fix error return code in ena_device_init()
author
Wei Yongjun
<weiyj.lk@gmail.com>
Mon, 15 Aug 2016 22:51:04 +0000
(22:51 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 15 Aug 2016 23:16:11 +0000
(16:16 -0700)
Fix to return a negative error code from the invalid dma width
error handling case instead of 0.
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/amazon/ena/ena_netdev.c
b/drivers/net/ethernet/amazon/ena/ena_netdev.c
index 499a22b165f1ba99ad2bbfd2ebfa64cbdcfd8168..5c536b8ec99ce439f7045f5125af42f9fd1fd5b8 100644
(file)
--- a/
drivers/net/ethernet/amazon/ena/ena_netdev.c
+++ b/
drivers/net/ethernet/amazon/ena/ena_netdev.c
@@
-2329,6
+2329,7
@@
static int ena_device_init(struct ena_com_dev *ena_dev, struct pci_dev *pdev,
dma_width = ena_com_get_dma_width(ena_dev);
if (dma_width < 0) {
dev_err(dev, "Invalid dma width value %d", dma_width);
+ rc = dma_width;
goto err_mmio_read_less;
}