aboutsummaryrefslogtreecommitdiff
path: root/sound/drivers/mpu401
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-11-15 23:30:24 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-18 13:43:56 -0800
commitd65e5e58537d8b09972ac37974d40d0ef7cec019 (patch)
treebb0f174f58cc9463bd7bd21c0024691f9a7a216a /sound/drivers/mpu401
parentf9e03b95ee4186dcaabea36d6d285ee99d8f2db4 (diff)
net: Fix the rollback test in dev_change_name()
[ Upstream commit 91e9c07bd635353d1a278bdb38dbb56ac371bcb8 ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound/drivers/mpu401')
0 files changed, 0 insertions, 0 deletions