From: Jesper Juhl Date: Mon, 30 Sep 2013 20:44:37 +0000 (+0200) Subject: staging: lustre: Don't leak 'buffer' in cfs_get_environ() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~551 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b20204310ad18516146264830bc7b840b6052d57;p=pandora-kernel.git staging: lustre: Don't leak 'buffer' in cfs_get_environ() If 'down_read_trylock' fails we'll curently leak the memory allocated to 'buffer'. Fix the leak by simply kfree'ing 'buffer' before returning '-EDEADLK'. Signed-off-by: Jesper Juhl Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed