Patch "drivers: net: xgene: Fix wrong logical operation" has been added to the 4.9-stable tree
This is a note to let you know that I've just added the patch titled
drivers: net: xgene: Fix wrong logical operation
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:
drivers-net-xgene-fix-wrong-logical-operation.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 Sun Mar 18 16:55:33 CET 2018
From: Quan Nguyen <[email protected]>
Date: Wed, 15 Mar 2017 13:27:17 -0700
Subject: drivers: net: xgene: Fix wrong logical operation
From: Quan Nguyen <[email protected]>
[ Upstream commit 11623fce0f9afef30c45e3f2120b063de3809a8f ]
This patch fixes the wrong logical OR operation by changing it to bit-wise OR operation.
--- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/apm/xgene/xgene_enet_main.c +2 -2
@@ -537,9 +537,9 @@ static int xgene_enet_rx_frame(struct xg buf_pool->rx_skb[skb_index] =NULL ;/* checking for error */ - status = (GET_VAL (ELERR ,le64_to_cpu (raw_desc->m0)) <<LERR_LEN ) || + status = (GET_VAL (ELERR ,le64_to_cpu (raw_desc->m0)) <<LERR_LEN ) |GET_VAL (LERR ,le64_to_cpu (raw_desc->m0)); -if (unlikely (status >2 )) { +if (unlikely (status)) {dev_kfree_skb_any (skb);xgene_enet_parse_error (rx_ring,netdev_priv (rx_ring->ndev), status);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/drivers-net-xgene-fix-wrong-logical-operation.patch queue-4.9/drivers-net-xgene-fix-hardware-checksum-setting.patch queue-4.9/drivers-net-phy-xgene-fix-mdio-write.patch