From: Ben Hutchings Date: Tue, 26 Jan 2010 18:27:09 +0000 (+0000) Subject: starfire: clean up properly if firmware loading fails X-Git-Tag: v2.6.33-rc7~20^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c928febf4bc703ea542340e5a208e0445d998839;p=pandora-kernel.git starfire: clean up properly if firmware loading fails netdev_open() will return without cleaning up net device or hardware state if firmware loading fails. This results in a BUG() on a second attempt to bring the interface up, reported in , and probably has even worse effects if the driver is removed afterwards. Call netdev_close() to clean up on failure. Addresses http://bugzilla.kernel.org/show_bug.cgi?id=15091 Signed-off-by: Ben Hutchings Reported-by: Michael Moffatt Tested-by: Michael Moffatt Cc: "David S. Miller" Cc: Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- Reading git-diff-tree failed