summaryrefslogtreecommitdiff
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-12-03 11:42:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-04 18:48:07 +0300
commitcf5fbe02042e52a5a3d93223770db39002b313c6 (patch)
tree27ec13722ffc2b2b8c905fd79a7b6b8849210793 /drivers/usb/core
parentebad43260d225bccd57c7144a6eecbef3cd88f7f (diff)
downloadlinux-cf5fbe02042e52a5a3d93223770db39002b313c6.tar.xz
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>
Diffstat (limited to 'drivers/usb/core')
0 files changed, 0 insertions, 0 deletions