projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be48be0
)
[CONNECTOR]: Fix a spurious kfree_skb() call
author
Michal Januszewski
<
[email protected]
>
Wed, 31 Oct 2007 03:41:49 +0000
(20:41 -0700)
committer
David S. Miller
<
[email protected]
>
Wed, 31 Oct 2007 04:29:47 +0000
(21:29 -0700)
Remove a spurious call to kfree_skb() in the connector rx_skb handler.
This fixes a regression introduced by the '[NET]: make netlink user ->
kernel interface synchronious' patch (
cd40b7d3983c708aabe3d3008ec64ffce56d33b0
)
Signed-off-by: Michal Januszewski <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/connector/connector.c
patch
|
blob
|
history
diff --git
a/drivers/connector/connector.c
b/drivers/connector/connector.c
index 0e328d387af4cbecdb326238b12d904dfe4988b1..6883fcb79ad35d27cd3eb5d65d2f6eaab82ded4c 100644
(file)
--- a/
drivers/connector/connector.c
+++ b/
drivers/connector/connector.c
@@
-218,7
+218,7
@@
static void cn_rx_skb(struct sk_buff *__skb)
skb->len < nlh->nlmsg_len ||
nlh->nlmsg_len > CONNECTOR_MAX_MSG_SIZE) {
kfree_skb(skb);
-
goto out
;
+
return
;
}
len = NLMSG_ALIGN(nlh->nlmsg_len);
@@
-229,9
+229,6
@@
static void cn_rx_skb(struct sk_buff *__skb)
if (err < 0)
kfree_skb(skb);
}
-
-out:
- kfree_skb(__skb);
}
/*