From: Dan Carpenter Date: Thu, 10 May 2012 15:18:36 +0000 (+0300) Subject: Staging: ipack: returning a freed pointer X-Git-Tag: v3.5-rc1~145^2~158 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bdeeb26c57012ea19a3b8fe3aeaecff377ae07d;p=pandora-kernel.git Staging: ipack: returning a freed pointer If ipack_device_register() returns an error, then we returned a freed pointer. The caller doesn't use it, but it means we return success to the user instead of returning an error code. I kind of rewrote the error handling in this function as a cleanup. Cc: Samuel Iglesias Gonsalvez Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed