mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ax25: In ax25_rebuild_header add missing kfree_skb
In the unlikely (impossible?) event that we attempt to transmit an ax25 packet over a non-ax25 device free the skb so we don't leak it. Cc: Ralf Baechle <[email protected]> Cc: [email protected] Signed-off-by: "Eric W. Biederman" <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
61e021f3b8
commit
e18dbd0593
1 changed files with 1 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ int ax25_rebuild_header(struct sk_buff *skb)
|
|||
dev = skb->dev;
|
||||
|
||||
if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) {
|
||||
kfree_skb(skb);
|
||||
goto put;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue