locks: fix leaks on setlease errors
authorJ. Bruce Fields <bfields@redhat.com>
Sat, 30 Oct 2010 21:31:14 +0000 (17:31 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 31 Oct 2010 01:08:15 +0000 (18:08 -0700)
commit096657b65e1ac197e20be5ce7cff6b6ca2532787
tree61265f8d8075aee437597ffe050f339b207356e7
parent0ceaf6c700f8245946a163e387add8675a0c302f
locks: fix leaks on setlease errors

We're depending on setlease to free the passed-in lease on failure.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/locks.c