Home
last modified time | relevance | path

Searched hist:cf5fbe02042e52a5a3d93223770db39002b313c6 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/usb/misc/
H A Dapple-mfi-fastcharge.cdiff cf5fbe02042e52a5a3d93223770db39002b313c6 Thu Dec 03 09:42:10 CET 2020 Dan Carpenter <dan.carpenter@oracle.com> 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: b0eec52fbe63 ("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>