Commit b974179abef7cd680b80bd7c7042802bdd6f0eb6

Authored by Patrick McHardy
Committed by David S. Miller
1 parent 52c41a3224

[RTNETLINK]: Fix use of wrong skb in do_getlink()

skb is the netlink query, nskb is the reply message.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/core/rtnetlink.c
... ... @@ -602,7 +602,7 @@
602 602 goto errout;
603 603 }
604 604  
605   - err = rtnl_unicast(skb, NETLINK_CB(skb).pid);
  605 + err = rtnl_unicast(nskb, NETLINK_CB(skb).pid);
606 606 errout:
607 607 kfree(iw_buf);
608 608 dev_put(dev);