]> git.baikalelectronics.ru Git - kernel.git/commit
net: propagate dev_get_valid_name return code
authorLi RongQing <lirongqing@baidu.com>
Tue, 19 Jun 2018 09:23:17 +0000 (17:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jun 2018 23:12:57 +0000 (08:12 +0900)
commita6c86ce35be9890b9143d2e04d8528fc212d7571
treeac435c2ffe7e6a17d7ff3133999c4dd30f21309e
parent9a63ba8e9097e9796ed6c644b977201fac628ef1
net: propagate dev_get_valid_name return code

if dev_get_valid_name failed, propagate its return code

and remove the setting err to ENODEV, it will be set to
0 again before dev_change_net_namespace exits.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c