From: Stefan Hajnoczi Date: Mon, 21 Jan 2013 01:17:22 +0000 (+0000) Subject: net: split eth_mac_addr for better error handling X-Git-Tag: v3.9-rc1~139^2~304^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa0879e37b59e8e3f130a30a9e6fa515717c5bdd;p=pandora-kernel.git net: split eth_mac_addr for better error handling When we set mac address, software mac address in system and hardware mac address all need to be updated. Current eth_mac_addr() doesn't allow callers to implement error handling nicely. This patch split eth_mac_addr() to prepare part and real commit part, then we can prepare first, and try to change hardware address, then do the real commit if hardware address is set successfully. Signed-off-by: Stefan Hajnoczi Signed-off-by: Amos Kong Signed-off-by: David S. Miller --- Reading git-diff-tree failed