]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ISDN kernelcapi notifier NULL pointer fix
authorAndrew Morton <akpm@osdl.org>
Wed, 17 Mar 2004 10:55:48 +0000 (02:55 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 17 Mar 2004 10:55:48 +0000 (02:55 -0800)
From: Armin Schindler <armin@melware.de>

Fixed NULL pointer reference in recv_handler()

drivers/isdn/capi/kcapi.c

index 1b4d069b6135057086684639da8be02ef74903f9..064dc3003716d5b3ae2181e3df65fc3638717537 100644 (file)
@@ -1,4 +1,4 @@
-/* $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
  * 
@@ -31,7 +31,7 @@
 #include <linux/b1lli.h>
 #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)
                ap = get_capi_appl_by_nr(CAPIMSG_APPID(skb->data));
                if (!ap) {
                        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);
                        continue;
                }