From: Trond Myklebust Date: Mon, 8 May 2006 03:02:42 +0000 (-0400) Subject: [PATCH] fs/locks.c: Fix lease_init X-Git-Tag: v2.6.17-rc4~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75dff55af9a989293e9f9bacf049858f4262bc08;p=pandora-kernel.git [PATCH] fs/locks.c: Fix lease_init It is insane to be giving lease_init() the task of freeing the lock it is supposed to initialise, given that the lock is not guaranteed to be allocated on the stack. This causes lockups in fcntl_setlease(). Problem diagnosed by Daniel Hokka Zakrisson Also fix a slab leak in __setlease() due to an uninitialised return value. Problem diagnosed by Björn Steinbrink. Signed-off-by: Trond Myklebust Tested-by: Daniel Hokka Zakrisson Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed