From: Jesper Juhl Date: Wed, 23 May 2012 12:58:49 +0000 (+0930) Subject: modpost: Stop grab_file() from leaking filedescriptors if fstat() fails X-Git-Tag: v3.5-rc1~108^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb3d5cc67a525df5115c1dc1c0ff8a111bda70e4;p=pandora-kernel.git modpost: Stop grab_file() from leaking filedescriptors if fstat() fails In case the open() call succeeds but the subsequent fstat() call fails, then we'll return without close()'ing the filedescriptor. Signed-off-by: Jesper Juhl Signed-off-by: Rusty Russell --- Reading git-diff-tree failed