From: Dan Carpenter Date: Fri, 23 Sep 2011 06:14:35 +0000 (+0300) Subject: NFC: use after free on error X-Git-Tag: v3.2-rc1~129^2~183^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ebafde00ed0c682fed8c34ac5ba90160ea0bb30;p=pandora-kernel.git NFC: use after free on error We returned a freed variable on some error paths when the intent was to return a NULL. Part of the reason this was missed was that the code was confusing because it had too many gotos so I removed them and simplified the flow a bit. Signed-off-by: Dan Carpenter Acked-by: Lauro Ramos Venancio Signed-off-by: John W. Linville --- Reading git-diff-tree failed