]> git.baikalelectronics.ru Git - kernel.git/commit
Fix GFP_KERNEL allocation under read lock.
authorPavel Emelyanov <xemul@openvz.org>
Tue, 6 May 2008 14:46:36 +0000 (18:46 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 May 2008 01:22:18 +0000 (21:22 -0400)
commiteae79d0ad1b8560a379f5d7e606ec9f7d7a955a4
treed515d29799a47ac689df7ebfcc2cbe30297879ea
parent13052eb2867f1777019b0c06885ad49126bff156
Fix GFP_KERNEL allocation under read lock.

The mesh_path_add() read-locks the pathtbl_resize_lock and calls
kmalloc with GFP_KERNEL mask.

Fix it and move the endadd2 label lower. It should be _before_ the
if() beyond, but it makes no sense for it being there, so I move it
right after this if().

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh_pathtbl.c