commit | 8bdeeb26c57012ea19a3b8fe3aeaecff377ae07d | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu May 10 18:18:36 2012 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu May 10 09:50:11 2012 -0700 |
tree | b23368aea71a229f28d40d20c1488267b9830c97 | |
parent | ba4dc61fe8c545a5d6a68b63616776556b771f51 [diff] |
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 <siglesias@igalia.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>