Skip to content
Commit 64c8165b authored by Pablo Bitton's avatar Pablo Bitton Committed by David S. Miller
Browse files

davinci_emac: fix kernel oops when changing MAC address while interface is down



Check that network interface is running before changing its MAC address.
Otherwise, rxch is accessed when it's NULL - causing a kernel oops.
Moreover, check that the new MAC address is valid.

Signed-off-by: default avatarPablo Bitton <pablo.bitton@gmail.com>
Signed-off-by: default avatarChaithrika U S <chaithrika@ti.com>
Tested-by: default avatarChaithrika U S <chaithrika@ti.com>
[tested on DM6467 EVM]
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 19e588e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment