Skip to content
Commit cf5fbe02 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

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: default avatarBastien Nocera <hadess@hadess.net>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X8ik4j8yJitVUyfU@mwanda


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ebad4326
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment