lkdtm: avoid calling lkdtm_do_action() with spinlock held
authorCong Wang <xiyou.wangcong@gmail.com>
Fri, 3 Feb 2012 23:37:15 +0000 (15:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 4 Feb 2012 00:16:41 +0000 (16:16 -0800)
commit92618184cb92c5b39d4d8573572d576f9ccb3c28
treec2cd2a7e360d6879ccc871df125a8de725949a53
parent99f02ef1f18631eb0a4e0ea0a3d56878dbcb4b90
lkdtm: avoid calling lkdtm_do_action() with spinlock held

lkdtm_do_action() may call sleeping functions like kmalloc(), so do not
call it with spin lock held.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <greg@kroah.com>
Reviewed-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/lkdtm.c