summaryrefslogtreecommitdiffstats
path: root/drivers/staging/batman-adv/unicast.h
diff options
context:
space:
mode:
authorVasiliy Kulikov <segooon@gmail.com>2010-09-12 23:21:56 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-14 16:38:34 -0700
commitff75f96bb0e9d4fc42efb66a6ccb7bf83ecc298f (patch)
tree3c10509bd1f1a5add4f2a21f321482be7c37092b /drivers/staging/batman-adv/unicast.h
parentb001f71ed1ea728814175b711602e150826d13cc (diff)
downloadop-kernel-dev-ff75f96bb0e9d4fc42efb66a6ccb7bf83ecc298f.zip
op-kernel-dev-ff75f96bb0e9d4fc42efb66a6ccb7bf83ecc298f.tar.gz
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>
Diffstat (limited to 'drivers/staging/batman-adv/unicast.h')
-rw-r--r--drivers/staging/batman-adv/unicast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/batman-adv/unicast.h b/drivers/staging/batman-adv/unicast.h
index 1d5cbeb..7973697 100644
--- a/drivers/staging/batman-adv/unicast.h
+++ b/drivers/staging/batman-adv/unicast.h
@@ -30,7 +30,7 @@ struct sk_buff *merge_frag_packet(struct list_head *head,
struct sk_buff *skb);
void create_frag_entry(struct list_head *head, struct sk_buff *skb);
-void create_frag_buffer(struct list_head *head);
+int create_frag_buffer(struct list_head *head);
struct frag_packet_list_entry *search_frag_packet(struct list_head *head,
struct unicast_frag_packet *up);
void frag_list_free(struct list_head *head);
OpenPOWER on IntegriCloud