commit | 360e27a91dd25fb7cf3b2befa1e1a7b4f27828d2 | [log] [tgz] |
---|---|---|
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | Fri Sep 04 15:34:15 2015 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Sep 12 18:24:43 2015 -0700 |
tree | dc6cbc8e2692a42d44c843a7105975a2dc32b0b0 | |
parent | d42ab0838d040bb57b2368125aeb49a8bf1d2383 [diff] |
staging: wilc1000: fix freeing of ERR_PTR If memdup_user() fails then it will return the error code in ERR_PTR. We were checking it with IS_ERR but then again trying to free it on the error path. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>