]> err.no Git - linux-2.6/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)
commitf84e71a94cb5f88d86ab50c251e09379925b80b9
treed515d29799a47ac689df7ebfcc2cbe30297879ea
parent812714d741750038004da505074c9158e9dee270
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