diff options
author | Sven Eckelmann <sven@narfation.org> | 2014-08-15 10:19:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-16 19:19:08 -0700 |
commit | e050dbeb0d1e19072d0d656b51f06af1af860f19 (patch) | |
tree | ca105c43b61e75c6838003abbbdd822e037b19c7 /drivers/atm/ambassador.h | |
parent | ed607b82cad5bc72957b4c8c4b35670950c3b0de (diff) | |
download | linux-e050dbeb0d1e19072d0d656b51f06af1af860f19.tar.bz2 |
batman-adv: Fix parameter order of hlist_add_behind
1d023284c31a4e40a94d5bbcb7dbb7a35ee0bcbc ("list: fix order of arguments for
hlist_add_after(_rcu)") was incorrectly rebased on top of
d9124268d84a836f14a6ead54ff9d8eee4c43be5 ("batman-adv: Fix out-of-order
fragmentation support"). The parameter order change of the rebased patch was
not re-applied as expected. This causes a memory leak and can cause crashes
when out-of-order packets are received. hlist_add_behind will try to access the
uninitalized list pointers of frag_entry_new to find the previous/next entry
and may modify/read random memory locations.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/ambassador.h')
0 files changed, 0 insertions, 0 deletions