USB: apple-mfi-fastcharge: Fix use after free in probe
This code frees "mfi" and then derefences it on the next line to get the error code. Fixes: b0eec52f ("USB: apple-mfi-fastcharge: Fix kfree after failed kzalloc") Reviewed-by:Bastien Nocera <hadess@hadess.net> Signed-off-by:
Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/X8ik4j8yJitVUyfU@mwanda Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
Please register or sign in to comment