summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/libertas
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-11-18 02:31:49 +0400
committerDavid S. Miller <davem@davemloft.net>2011-11-18 02:31:49 +0400
commit596a1b746c56f974240c8df6d8e3a026c54266ff (patch)
treea6c50df4b1fcf8c8c912ba64e0d359f672e8d0fe /drivers/net/wireless/libertas
parent38ff1edb52f737d490126728e3d5ba2b8d2f3ba0 (diff)
parentc4be3c2da1ab4344d3d5f63d6ec1952a3c6e635c (diff)
downloadlinux-596a1b746c56f974240c8df6d8e3a026c54266ff.tar.xz
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r--drivers/net/wireless/libertas/if_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/if_spi.c b/drivers/net/wireless/libertas/if_spi.c
index 11b69b300dc0..728baa445259 100644
--- a/drivers/net/wireless/libertas/if_spi.c
+++ b/drivers/net/wireless/libertas/if_spi.c
@@ -995,6 +995,7 @@ static int if_spi_host_to_card(struct lbs_private *priv,
spin_unlock_irqrestore(&card->buffer_lock, flags);
break;
default:
+ kfree(packet);
netdev_err(priv->dev, "can't transfer buffer of type %d\n",
type);
err = -EINVAL;