[NET]: Fix kfree(skb)
Signed-off-by: Patrick McHardy <kaber@trash.net> Acked-by: Paul Moore <paul.moore@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
4498121ca3
commit
b08d5840d2
@@ -1401,7 +1401,7 @@ static int xfrm_get_ae(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||
|
||||
x = xfrm_state_lookup(&id->daddr, id->spi, id->proto, id->family);
|
||||
if (x == NULL) {
|
||||
kfree(r_skb);
|
||||
kfree_skb(r_skb);
|
||||
return -ESRCH;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user