Patch "amd-xgbe: Check xgbe_init() return code" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
amd-xgbe: Check xgbe_init() return code
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
amd-xgbe-check-xgbe_init-return-code.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Jul 3 13:09:02 CEST 2017
From: "Lendacky, Thomas" <[email protected]>
Date: Fri, 20 Jan 2017 12:14:13 -0600
Subject: amd-xgbe: Check xgbe_init() return code
From: "Lendacky, Thomas" <[email protected]>
[ Upstream commit 738f7f647371ff4cfc9646c99dba5b58ad142db3 ]
The xgbe_init() routine returns a return code indicating success or failure, but the return code is not checked. Add code to xgbe_init() to issue a message when failures are seen and add code to check the xgbe_init() return code.
--- drivers/net/ethernet/amd/xgbe/xgbe-dev.c | 4 +++- drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/net/ethernet/amd/xgbe/xgbe-dev.c +3 -1
@@ -2825,8 +2825,10 @@ static int xgbe_init(struct xgbe_prv_dat/* Flush Tx queues */ ret =xgbe_flush_tx_queues (pdata); -if (ret) +if (ret) { +netdev_err (pdata->netdev,"error flushing TX queues\n" );return ret; + }/* * Initialize DMA related features
drivers/net/ethernet/amd/xgbe/xgbe-drv.c +3 -1
@@ -877,7 +877,9 @@ static int xgbe_start(struct xgbe_prv_daDBGPR ("-->xgbe_start\n" ); - hw_if->init (pdata); + ret = hw_if->init (pdata); +if (ret) +return ret; ret = phy_if->phy_start (pdata);if (ret)
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/amd-xgbe-check-xgbe_init-return-code.patch