]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tipc: Fix null pointer dereference in debug code
authorAllan Stephens <allan.stephens@windriver.com>
Mon, 5 May 2008 08:21:54 +0000 (01:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2008 08:21:54 +0000 (01:21 -0700)
This patch eliminates an obsolete use of the DBG_OUTPUT print
buffer which could lead to a null pointer crash in tipc_printf()
if TIPC's debugging capabilities are configured.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_distr.c

index 39fd1619febf4c1e9e4c49152fe0fb9964d02522..aecba5cd87d6c8952791e99b63b236a608a20ff9 100644 (file)
@@ -41,9 +41,6 @@
 #include "msg.h"
 #include "name_distr.h"
 
-#undef  DBG_OUTPUT
-#define DBG_OUTPUT NULL
-
 #define ITEM_SIZE sizeof(struct distr_item)
 
 /**