Skip to content

Commit 2cdf8c2

Browse files
John Wanggregkh
John Wang
authored andcommitted
net/ncsi: Use real net-device for response handler
[ Upstream commit 427c940 ] When aggregating ncsi interfaces and dedicated interfaces to bond interfaces, the ncsi response handler will use the wrong net device to find ncsi_dev, so that the ncsi interface will not work properly. Here, we use the original net device to fix it. Fixes: 138635c ("net/ncsi: NCSI response packet handler") Signed-off-by: John Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 23f8bea commit 2cdf8c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ncsi/ncsi-rsp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ int ncsi_rcv_rsp(struct sk_buff *skb, struct net_device *dev,
11201120
int payload, i, ret;
11211121

11221122
/* Find the NCSI device */
1123-
nd = ncsi_find_dev(dev);
1123+
nd = ncsi_find_dev(orig_dev);
11241124
ndp = nd ? TO_NCSI_DEV_PRIV(nd) : NULL;
11251125
if (!ndp)
11261126
return -ENODEV;

0 commit comments

Comments
 (0)