From: Pablo Bitton Date: Wed, 8 Jul 2009 02:11:10 +0000 (-0700) Subject: davinci_emac: fix kernel oops when changing MAC address while interface is down X-Git-Tag: v2.6.31-rc3~40^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64c8165b44a91c09b19afb4110610ed242286639;p=pandora-kernel.git 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: Pablo Bitton Signed-off-by: Chaithrika U S Tested-by: Chaithrika U S [tested on DM6467 EVM] Signed-off-by: David S. Miller --- Reading git-diff-tree failed