]> git.baikalelectronics.ru Git - kernel.git/commit
caif: remove wrong dev_net_set() call
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 26 Jan 2015 21:28:13 +0000 (22:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jan 2015 22:20:02 +0000 (14:20 -0800)
commitb3806715b4146959c65221b544940f62ba4529cb
tree71d667cca937d52492c4587c4d45f8cd2f2beaf3
parentb1c26cb0b39ffbfadd2a48e690438254b39b7b6b
caif: remove wrong dev_net_set() call

src_net points to the netns where the netlink message has been received. This
netns may be different from the netns where the interface is created (because
the user may add IFLA_NET_NS_[PID|FD]). In this case, src_net is the link netns.

It seems wrong to override the netns in the newlink() handler because if it
was not already src_net, it means that the user explicitly asks to create the
netdevice in another netns.

CC: Sjur Brændeland <sjur.brandeland@stericsson.com>
CC: Dmitry Tarnyagin <dmitry.tarnyagin@lockless.no>
Fixes: 27f9174ce6da ("caif: Bugfixes in CAIF netdevice for close and flow control")
Fixes: e5a4af4e64bc ("caif-hsi: Add rtnl support")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_hsi.c
net/caif/chnl_net.c