net/smsc911x: Repair broken failure paths
authorLee Jones <lee.jones@linaro.org>
Tue, 29 May 2012 18:47:37 +0000 (18:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 May 2012 21:52:16 +0000 (17:52 -0400)
Current failure paths attempt to free resources which we failed to request
and disable resources which we failed to enable ones. This leads to kernel
oops/panic. This patch does some simple re-ordering to prevent this from
happening.

Cc: netdev@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found