Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: batman-adv: Always receive when discarding.

It does not matter if the interface is to be activated or not, we must
read the packet in order that it be discarded.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Andrew Lunn and committed by
Greg Kroah-Hartman
4088c7ca da6b9ba9

+1 -2
+1 -2
drivers/staging/batman-adv/routing.c
··· 1177 1177 { 1178 1178 int result = -EAGAIN; 1179 1179 1180 - if ((batman_if->if_active == IF_TO_BE_ACTIVATED) 1181 - && (batman_if->raw_sock)) { 1180 + if (batman_if->raw_sock) { 1182 1181 result = receive_raw_packet(batman_if->raw_sock, 1183 1182 packet_buff, 1184 1183 PACKBUFF_SIZE);