kernel_optimize_test/net/batman-adv
Andreas Pape a1a745ef98 batman-adv: fix memory leak when dropping packet from other gateway
The skb must be released in the receive handler since b91a2543b4
("batman-adv: Consume skb in receive handlers"). Just returning NET_RX_DROP
will no longer automatically free the memory. This results in memory leaks
when unicast packets from other backbones must be dropped because they
share a common backbone.

Fixes: 9e794b6bf4 ("batman-adv: drop unicast packets from other backbone gw")
Signed-off-by: Andreas Pape <apape@phoenixcontact.com>
[sven@narfation.org: adjust commit message]
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2017-05-19 12:20:28 +02:00
..
bat_algo.c
bat_algo.h
bat_iv_ogm.c This feature/cleanup patchset includes the following patches: 2017-04-06 14:37:50 -07:00
bat_iv_ogm.h
bat_v_elp.c
bat_v_elp.h
bat_v_ogm.c
bat_v_ogm.h
bat_v.c Here are two batman-adv bugfixes: 2017-03-16 12:05:38 -07:00
bat_v.h
bitarray.c
bitarray.h
bridge_loop_avoidance.c batman-adv: handle race condition for claims between gateways 2017-03-22 10:30:53 +01:00
bridge_loop_avoidance.h batman-adv: prevent multiple ARP replies sent by gateways if dat enabled 2017-03-22 10:30:53 +01:00
debugfs.c
debugfs.h
distributed-arp-table.c batman-adv: Fix rx packet/bytes stats on local ARP reply 2017-05-19 12:18:52 +02:00
distributed-arp-table.h
fragmentation.c Here are two batman-adv bugfixes: 2017-03-16 12:05:38 -07:00
fragmentation.h
gateway_client.c
gateway_client.h
gateway_common.c Here are two batman-adv bugfixes: 2017-03-16 12:05:38 -07:00
gateway_common.h
hard-interface.c
hard-interface.h
hash.c
hash.h
icmp_socket.c
icmp_socket.h
Kconfig
log.c
log.h batman-adv: Fix possible side-effects in _batadv_dbg 2017-03-16 21:14:52 +01:00
main.c batman-adv: restructure rebroadcast counter into forw_packet API 2017-03-26 12:46:44 +02:00
main.h batman-adv: Convert BATADV_PRINT_VID macro to function 2017-03-16 21:14:53 +01:00
Makefile
multicast.c batman-adv: Reduce preprocessor checks in multicast.c 2017-03-16 21:14:50 +01:00
multicast.h
netlink.c
netlink.h
network-coding.c
network-coding.h
originator.c
originator.h
packet.h
routing.c batman-adv: fix memory leak when dropping packet from other gateway 2017-05-19 12:20:28 +02:00
routing.h
send.c batman-adv: restructure rebroadcast counter into forw_packet API 2017-03-26 12:46:44 +02:00
send.h batman-adv: restructure rebroadcast counter into forw_packet API 2017-03-26 12:46:44 +02:00
soft-interface.c This feature/cleanup patchset includes the following patches: 2017-04-06 14:37:50 -07:00
soft-interface.h
sysfs.c
sysfs.h
tp_meter.c batman-adv: Use __func__ to add function names to messages 2017-03-17 12:53:35 +01:00
tp_meter.h
translation-table.c batman-adv: Convert BATADV_PRINT_VID macro to function 2017-03-16 21:14:53 +01:00
translation-table.h
tvlv.c
tvlv.h
types.h This feature/cleanup patchset includes the following patches: 2017-04-06 14:37:50 -07:00