Staging: batman-adv: Don't dereference unchecked incoming soft_iface
authorSven Eckelmann <sven.eckelmann@gmx.de>
Tue, 19 Oct 2010 09:59:10 +0000 (11:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Oct 2010 17:04:16 +0000 (10:04 -0700)
commit9b37bc2c711b2a76ef3daa9437bbf9c58411afbd
tree745f0b7b3a736a858a920808e44e2f40647e7d9b
parent1ee600ced32c4cabaeead0a4e84a6d4c9110f82c
Staging: batman-adv: Don't dereference unchecked incoming soft_iface

send_packet derefenced forw_packet->if_incoming and checked if
forw_packet->if_incoming is NULL.

This cannot happen, but still makes irritates when reading through the
functions.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/send.c