From: Herbert Xu Date: Sun, 23 Oct 2005 06:37:48 +0000 (+1000) Subject: [NEIGH] Fix add_timer race in neigh_add_timer X-Git-Tag: v2.6.14~40^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fb9974f49f7a6032118c5b6caa6e08e7097913e;p=pandora-kernel.git [NEIGH] Fix add_timer race in neigh_add_timer neigh_add_timer cannot use add_timer unconditionally. The reason is that by the time it has obtained the write lock someone else (e.g., neigh_update) could have already added a new timer. So it should only use mod_timer and deal with its return value accordingly. This bug would have led to rare neighbour cache entry leaks. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed