From: Christoph Hellwig Date: Sun, 31 Oct 2010 12:35:10 +0000 (-0400) Subject: locks: let the caller free file_lock on ->setlease failure X-Git-Tag: v2.6.37-rc1~9 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=51ee4b84f5c86935b438d6636f34b523edb415a8;hp=51ee4b84f5c86935b438d6636f34b523edb415a8;p=net-next-2.6.git locks: let the caller free file_lock on ->setlease failure The caller allocated it, the caller should free it. The only issue so far is that we could change the flp pointer even on an error return if the fl_change callback failed. But we can simply move the flp assignment after the fl_change invocation, as the callers don't care about the flp return value if the setlease call failed. Signed-off-by: Christoph Hellwig Signed-off-by: Linus Torvalds ---