Eric Dumazet 91e9c07bd6 net: Fix the rollback test in dev_change_name()
net: Fix the rollback test in dev_change_name()

In dev_change_name() an err variable is used for storing the original
call_netdevice_notifiers() errno (negative) and testing for a rollback
error later, but the test for non-zero is wrong, because the err might
have positive value as well - from dev_alloc_name(). It means the
rollback for a netdevice with a number > 0 will never happen. (The err
test is reordered btw. to make it more readable.)

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-11-16 03:30:35 -08:00
..
2009-09-23 22:26:32 +09:30
2009-05-25 01:53:53 -07:00
2009-09-26 20:16:15 -07:00
2009-11-06 00:50:39 -08:00
2009-05-25 01:53:53 -07:00
2009-10-30 12:25:12 -07:00
2009-09-02 01:03:53 -07:00
2009-09-30 16:41:34 -07:00
2009-08-04 16:44:23 -04:00
2009-11-05 20:56:07 -08:00
2009-10-11 23:03:47 -07:00
2009-07-12 12:22:34 -07:00
2009-11-02 15:14:07 -05:00
2009-09-02 01:03:53 -07:00