Skip to content
Commit 8ce6cebc authored by Daniel Lezcano's avatar Daniel Lezcano Committed by David S. Miller
Browse files

net-2.6 : V2 - fix dev_get_valid_name

the commit:

commit d9031024
Author: Octavian Purdila <opurdila@ixiacom.com>
Date:   Wed Nov 18 02:36:59 2009 +0000

    net: device name allocation cleanups

introduced a bug when there is a hash collision making impossible
to rename a device with eth%d. This bug is very hard to reproduce
and appears rarely.

The problem is coming from we don't pass a temporary buffer to
__dev_alloc_name but 'dev->name' which is modified by the function.

A detailed explanation is here:

http://marc.info/?l=linux-netdev&m=127417784011987&w=2



Changelog:
 V2 : replaced strings comparison by pointers comparison

Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@free.fr>
Reviewed-by: default avatarOctavian Purdila <opurdila@ixiacom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a4ed89cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment