diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2010-09-29 08:34:27 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-29 19:30:11 -0700 |
commit | 9337057d4335053dc14934a60d9c3e8fe4e32039 (patch) | |
tree | c530d94ff1517586dd93f409aee882858f9925a3 /net/phonet | |
parent | 68c1f3a96c32a4fe15ebadae45c8145a5e5a66d2 (diff) | |
download | op-kernel-dev-9337057d4335053dc14934a60d9c3e8fe4e32039.zip op-kernel-dev-9337057d4335053dc14934a60d9c3e8fe4e32039.tar.gz |
um: Proper Fix for f25c80a4: remove duplicate structure field initialization
uml_net_set_mac() was broken and luckily it was never used, before.
What it was trying to do is spin_lock before memcopy the mac address.
Linus attempted to fix it in assumption that someone decided the
lock was needed. But since it was never ever used at all, and was
just dead code, I think we can assume that it is not needed, after
all.
On the other hand patch [f25c80a4] was trying to use eth_mac_addr()
in eth_configure(), *which was the real fallout*. Because of state
checks done inside eth_mac_addr() the address was never set. I have
not reintroduced the memcpy wrapper, but I've put a comment for future
cats.
The code now is back to exactly as it was before [f25c80a4]. With
the cleanup applied. If the spin_lock is indeed needed then a contender
should supply a test case that fails, then fix it with the proper
locking, as a separate unrelated patch.
CC: Julia Lawall <julia@diku.dk>
CC: David S. Miller <davem@davemloft.net>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Al Viro <viro@ZenIV.linux.org.uk>
Tested-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet')
0 files changed, 0 insertions, 0 deletions