Skip to content
Commit 6ffc8e29 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Marek Vasut
Browse files

f_fastboot: Avoid use-after-free in the global pointer variable



In case of usb_add_function() failure the error path has an issue,
i.e the global pointer variable is assigned to garbage

Fix the above mentioned issue by assigning pointer to NULL.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent ff52577c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment