Re: [FIB]: Avoid using static variables without proper locking

2008-01-14 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Mon, 14 Jan 2008 20:27:11 +0100 > fib_trie_seq_show() uses two helper functions, rtn_scope() and > rtn_type() that can > write to static storage without locking. > > Just pass to them a temporary buffer to avoid potential corruption > (probably not t

[FIB]: Avoid using static variables without proper locking

2008-01-14 Thread Eric Dumazet
fib_trie_seq_show() uses two helper functions, rtn_scope() and rtn_type() that can write to static storage without locking. Just pass to them a temporary buffer to avoid potential corruption (probably not triggerable but still...) Signed-off-by: Eric Dumazet <[EMAIL PROTECTED]> diff --git a/