]> git.baikalelectronics.ru Git - kernel.git/commit
net: compare_ether_addr[_64bits]() has no ordering
authorJohannes Berg <johannes.berg@intel.com>
Mon, 7 May 2012 13:39:06 +0000 (15:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 May 2012 23:21:29 +0000 (19:21 -0400)
commit365c4eb54c2a931323e8e3d99c2975c82be686fb
tree5027e4edc9c66a9e49e0e73ba866f5bb326fadcd
parentb54c46aaf98bfd43a13c681318585adbefbc9b65
net: compare_ether_addr[_64bits]() has no ordering

Neither compare_ether_addr() nor compare_ether_addr_64bits()
(as it can fall back to the former) have comparison semantics
like memcmp() where the sign of the return value indicates sort
order. We had a bug in the wireless code due to a blind memcmp
replacement because of this.

A cursory look suggests that the wireless bug was the only one
due to this semantic difference.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/etherdevice.h