From: Dan Carpenter Date: Fri, 23 Jul 2010 06:38:45 +0000 (-0700) Subject: Input: adxl34x - fix leak and use after free X-Git-Tag: v2.6.36-rc1~581^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1cba532e8c1001a39650379aa7e04ad974d0592;p=pandora-kernel.git Input: adxl34x - fix leak and use after free These are a couple smatch issues. In the original code, if only one of the allocation fails we leak the other variable so we should goto out_free_mem. Also there was a use after free if debugging was enabled and so I moved the kfree() down a line. Signed-off-by: Dan Carpenter Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed