Skip to content

Commit

Permalink
[CONNECTOR]: Fix a spurious kfree_skb() call
Browse files Browse the repository at this point in the history
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 (cd40b7d)

Signed-off-by: Michal Januszewski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Michal Januszewski authored and David S. Miller committed Oct 31, 2007
1 parent be48be0 commit 6cf92e9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/connector/connector.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -229,9 +229,6 @@ static void cn_rx_skb(struct sk_buff *__skb)
if (err < 0)
kfree_skb(skb);
}

out:
kfree_skb(__skb);
}

/*
Expand Down

0 comments on commit 6cf92e9

Please sign in to comment.