Commit 8754a8e2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ISDN kernelcapi notifier NULL pointer fix

From: Armin Schindler <armin@melware.de>

Fixed NULL pointer reference in recv_handler()
parent 3820421b
/* $Id: kcapi.c,v 1.1.2.6 2004/03/16 08:00:08 armin Exp $ /* $Id: kcapi.c,v 1.1.2.7 2004/03/16 08:01:47 armin Exp $
* *
* Kernel CAPI 2.0 Module * Kernel CAPI 2.0 Module
* *
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <linux/b1lli.h> #include <linux/b1lli.h>
#endif #endif
static char *revision = "$Revision: 1.1.2.6 $"; static char *revision = "$Revision: 1.1.2.7 $";
/* ------------------------------------------------------------- */ /* ------------------------------------------------------------- */
...@@ -246,7 +246,7 @@ static void recv_handler(void *dummy) ...@@ -246,7 +246,7 @@ static void recv_handler(void *dummy)
ap = get_capi_appl_by_nr(CAPIMSG_APPID(skb->data)); ap = get_capi_appl_by_nr(CAPIMSG_APPID(skb->data));
if (!ap) { if (!ap) {
printk(KERN_ERR "kcapi: recv_handler: applid %d ? (%s)\n", printk(KERN_ERR "kcapi: recv_handler: applid %d ? (%s)\n",
ap->applid, capi_message2str(skb->data)); CAPIMSG_APPID(skb->data), capi_message2str(skb->data));
kfree_skb(skb); kfree_skb(skb);
continue; continue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment