aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/orinoco/orinoco_usb.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-07-23 17:03:38 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-23 17:03:38 -0400
commit2a88e7e559f2358f4e1422d0b0c0278a74136581 (patch)
treeb4e9e56dbde79fe7185cba511a1ffd85f5d2018e /drivers/net/wireless/orinoco/orinoco_usb.c
parent344e0f623cec5eba273db06fe57db080988d6b26 (diff)
parent7a17a33c0da37f8d24222c967550d19dabf13617 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Conflicts: drivers/net/wireless/iwlwifi/iwl-commands.h
Diffstat (limited to 'drivers/net/wireless/orinoco/orinoco_usb.c')
-rw-r--r--drivers/net/wireless/orinoco/orinoco_usb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c
index 1558381998ee..a38a7bd25f19 100644
--- a/drivers/net/wireless/orinoco/orinoco_usb.c
+++ b/drivers/net/wireless/orinoco/orinoco_usb.c
@@ -1502,16 +1502,16 @@ static inline void ezusb_delete(struct ezusb_priv *upriv)
1502 ezusb_ctx_complete(list_entry(item, 1502 ezusb_ctx_complete(list_entry(item,
1503 struct request_context, list)); 1503 struct request_context, list));
1504 1504
1505 if (upriv->read_urb->status == -EINPROGRESS) 1505 if (upriv->read_urb && upriv->read_urb->status == -EINPROGRESS)
1506 printk(KERN_ERR PFX "Some URB in progress\n"); 1506 printk(KERN_ERR PFX "Some URB in progress\n");
1507 1507
1508 mutex_unlock(&upriv->mtx); 1508 mutex_unlock(&upriv->mtx);
1509 1509
1510 kfree(upriv->read_urb->transfer_buffer); 1510 if (upriv->read_urb) {
1511 if (upriv->bap_buf != NULL) 1511 kfree(upriv->read_urb->transfer_buffer);
1512 kfree(upriv->bap_buf);
1513 if (upriv->read_urb != NULL)
1514 usb_free_urb(upriv->read_urb); 1512 usb_free_urb(upriv->read_urb);
1513 }
1514 kfree(upriv->bap_buf);
1515 if (upriv->dev) { 1515 if (upriv->dev) {
1516 struct orinoco_private *priv = ndev_priv(upriv->dev); 1516 struct orinoco_private *priv = ndev_priv(upriv->dev);
1517 orinoco_if_del(priv); 1517 orinoco_if_del(priv);