]> git.baikalelectronics.ru Git - kernel.git/commit
NETROM: Fix use of static buffer
authorRalf Baechle <ralf@linux-mips.org>
Tue, 18 Aug 2009 01:05:32 +0000 (18:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Aug 2009 01:05:32 +0000 (18:05 -0700)
commitf44cf7a5a326c1313fb35bc849fd912efc1dd1bd
tree2fbd38ba11da09f18a6ba922c772b41364b03b20
parent8dedd1d825157f753faa7fb8d39b8b847f31c4c3
NETROM: Fix use of static buffer

The static variable used by nr_call_to_digi might result in corruption if
multiple threads are trying to usee a node or neighbour via ioctl.  Fixed
by having the caller pass a structure in.  This is safe because nr_add_node
rsp. nr_add_neigh will allocate a permanent structure, if needed.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netrom/nr_route.c