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 E
Hi,
I've resubmitted this patch since my email client has corrupted
the v2 patch, turning TAB characters into spaces.
Hopefully, this won't happen again.
On Tue, Jul 7, 2009 at 9:10 AM, Pablo Bitton wrote:
> Check that network interface is running before changing its MAC address.
> Otherwise, r