From: Allan Stephens Date: Mon, 5 May 2008 08:21:54 +0000 (-0700) Subject: tipc: Fix null pointer dereference in debug code X-Git-Tag: v2.6.27-rc1~964^2~535 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40dbfae440abe6860167f12e0296bd7a1a599839;p=profile%2Fivi%2Fkernel-x86-ivi.git tipc: Fix null pointer dereference in debug code 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 Signed-off-by: David S. Miller --- diff --git a/net/tipc/name_distr.c b/net/tipc/name_distr.c index 39fd161..aecba5c 100644 --- a/net/tipc/name_distr.c +++ b/net/tipc/name_distr.c @@ -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) /**