diff options
| author | Johannes Berg <[email protected]> | 2008-11-17 07:20:31 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2008-11-17 07:20:31 +0000 |
| commit | 5f9021cfdc3524a4c5e3d7ae2d049eb7adcd6776 (patch) | |
| tree | 53e42bd9bb7db0858af5c1de4dd47e0af3ad3c47 /net/unix/sysctl_net_unix.c | |
| parent | isdn: remove extra byteswap in isdn_net_ciscohdlck_slarp_send_reply (diff) | |
| download | kernel-5f9021cfdc3524a4c5e3d7ae2d049eb7adcd6776.tar.gz kernel-5f9021cfdc3524a4c5e3d7ae2d049eb7adcd6776.zip | |
rtnetlink: propagate error from dev_change_flags in do_setlink()
Unlike ifconfig, iproute doesn't report an error when setting
an interface up fails:
(example: put wireless network mac80211 interface into repeater mode
with iwconfig but do not set a peer MAC address, it should fail with
-ENOLINK)
without patch:
# ip link set wlan0 up ; echo $?
0
#
with patch:
# ip link set wlan0 up ; echo $?
RTNETLINK answers: Link has been severed
2
#
Propagate the return value from dev_change_flags() to fix this.
Signed-off-by: Patrick McHardy <[email protected]>
Tested-by: Johannes Berg <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
