]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: correct check in dev_addr_del()
authorJiri Pirko <jiri@resnulli.us>
Wed, 14 Nov 2012 02:51:04 +0000 (02:51 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Dec 2012 11:20:12 +0000 (11:20 +0000)
commitff5d468a3f897811682442ae2a0e6b303679d8a6
tree49e947de2072fddf91b6d1caf3be11f04b156767
parentedd265dc3128ce255654440b6bdf518dbe6325fd
net: correct check in dev_addr_del()

[ Upstream commit a652208e0b52c190e57f2a075ffb5e897fe31c3b ]

Check (ha->addr == dev->dev_addr) is always true because dev_addr_init()
sets this. Correct the check to behave properly on addr removal.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/core/dev_addr_lists.c