Staging: batman-adv: check kmalloc() return value
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 12 Sep 2010 21:21:56 +0000 (23:21 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 14 Sep 2010 23:38:34 +0000 (16:38 -0700)
commitff75f96bb0e9d4fc42efb66a6ccb7bf83ecc298f
tree3c10509bd1f1a5add4f2a21f321482be7c37092b
parentb001f71ed1ea728814175b711602e150826d13cc
Staging: batman-adv: check kmalloc() return value

kmalloc() may fail, if so drop current packet.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
[sven.eckelmann@gmx.de: Removed new introduced deadlock]
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/routing.c
drivers/staging/batman-adv/unicast.c
drivers/staging/batman-adv/unicast.h