summaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_tables.h
diff options
context:
space:
mode:
authorSven Eckelmann2015-08-18 13:37:01 +0200
committerDavid S. Miller2015-08-19 04:08:23 +0200
commitfd7dec25a18f495e50d2040398fd263836ff3b28 (patch)
tree2f16bcbb872e72622506b36fe3e32c503bc78b29 /include/net/netfilter/nf_tables.h
parentnet: phy: fix semicolon.cocci warnings (diff)
downloadkernel-qcow2-linux-fd7dec25a18f495e50d2040398fd263836ff3b28.tar.gz
kernel-qcow2-linux-fd7dec25a18f495e50d2040398fd263836ff3b28.tar.xz
kernel-qcow2-linux-fd7dec25a18f495e50d2040398fd263836ff3b28.zip
batman-adv: Fix memory leak on tt add with invalid vlan
The object tt_local is allocated with kmalloc and not initialized when the function batadv_tt_local_add checks for the vlan. But this function can only cleanup the object when the (not yet initialized) reference counter of the object is 1. This is unlikely and thus the object would leak when the vlan could not be found. Instead the uninitialized object tt_local has to be freed manually and the pointer has to set to NULL to avoid calling the function which would try to decrement the reference counter of the not existing object. CID: 1316518 Fixes: 354136bcc3c4 ("batman-adv: fix kernel crash due to missing NULL checks") Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netfilter/nf_tables.h')
0 files changed, 0 insertions, 0 deletions