diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2012-04-16 19:44:00 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-17 22:49:59 +0400 |
commit | 1e66eda1d40c9ce3ff38782da066a14e1b88ac50 (patch) | |
tree | e6c78ddb3ba7505f903411df6f65048c5228611f | |
parent | d9fb6465802c2279ea14cc26eb66d17c133478b1 (diff) | |
download | linux-1e66eda1d40c9ce3ff38782da066a14e1b88ac50.tar.xz |
drivers/net/wireless/libertas/if_usb.c: add missing debugging code
Add a corresponding leave call on error failure.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/libertas/if_usb.c | 6 |
1 files changed, 4 insertions, 2 deletions
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()) { |