]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit016020a6d45bca37bc7c24e21917b5ffc5df14ee
tree61265f8d8075aee437597ffe050f339b207356e7
parentf1d33a78fd35f82c6be6f0a88804bf778af498ec
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