diff options
| author | Toshiaki Makita <[email protected]> | 2014-04-09 08:00:30 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-04-11 19:12:47 +0000 |
| commit | eb7076182d1ae4bc4641534134ed707100d76acc (patch) | |
| tree | a4beecd9fe24c72173ecfa9adf7d125a8dd19ef0 /net/unix/af_unix.c | |
| parent | bonding: Remove debug_fs files when module init fails (diff) | |
| download | kernel-eb7076182d1ae4bc4641534134ed707100d76acc.tar.gz kernel-eb7076182d1ae4bc4641534134ed707100d76acc.zip | |
bridge: Fix double free and memory leak around br_allowed_ingress
br_allowed_ingress() has two problems.
1. If br_allowed_ingress() is called by br_handle_frame_finish() and
vlan_untag() in br_allowed_ingress() fails, skb will be freed by both
vlan_untag() and br_handle_frame_finish().
2. If br_allowed_ingress() is called by br_dev_xmit() and
br_allowed_ingress() fails, the skb will not be freed.
Fix these two problems by freeing the skb in br_allowed_ingress()
if it fails.
Signed-off-by: Toshiaki Makita <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
