projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47afbaf
)
libertas: don't leak skb on receive error
author
Philip Rakity
<prakity@yahoo.com>
Tue, 7 Apr 2009 19:41:17 +0000
(12:41 -0700)
committer
John W. Linville
<linville@tuxdriver.com>
Thu, 16 Apr 2009 14:39:08 +0000
(10:39 -0400)
Don't lead memory when receive errors
Signed-off-by: Philip Rakity <prakity@yahoo.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/rx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/libertas/rx.c
b/drivers/net/wireless/libertas/rx.c
index
63d7e19
..
8e66977
100644
(file)
--- a/
drivers/net/wireless/libertas/rx.c
+++ b/
drivers/net/wireless/libertas/rx.c
@@
-170,6
+170,7
@@
int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *skb)
lbs_deb_rx("rx err: frame received with bad length\n");
dev->stats.rx_length_errors++;
ret = 0;
+ dev_kfree_skb(skb);
goto done;
}
@@
-181,6
+182,7
@@
int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *skb)
lbs_pr_alert("rxpd not ok\n");
dev->stats.rx_errors++;
ret = 0;
+ dev_kfree_skb(skb);
goto done;
}