Skip to content

Commit

Permalink
tipc: Fix null pointer dereference in debug code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and David S. Miller committed May 5, 2008
1 parent 93758c3 commit 40dbfae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/tipc/name_distr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

/**
Expand Down

0 comments on commit 40dbfae

Please sign in to comment.