From: Julia Lawall Date: Mon, 16 Apr 2012 15:44:00 +0000 (+0200) Subject: drivers/net/wireless/libertas/if_usb.c: add missing debugging code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1e66eda1d40c9ce3ff38782da066a14e1b88ac50;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drivers/net/wireless/libertas/if_usb.c: add missing debugging code Add a corresponding leave call on error failure. Signed-off-by: Julia Lawall Acked-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index 74da5f1ea243..ce4938dec2ca 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c @@ -1128,8 +1128,10 @@ static int if_usb_suspend(struct usb_interface *intf, pm_message_t message) lbs_deb_enter(LBS_DEB_USB); - if (priv->psstate != PS_STATE_FULL_POWER) - return -1; + if (priv->psstate != PS_STATE_FULL_POWER) { + ret = -1; + goto out; + } #ifdef CONFIG_OLPC if (machine_is_olpc()) {