commit | ab81b2a737d98e0d97b1517c68c385a1dd27dcb4 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Thu Dec 03 17:32:05 2020 +0200 |
committer | Marek Vasut <marex@denx.de> | Sun Jan 31 14:08:56 2021 +0100 |
tree | b5b314dad5e2917c6fe5ebe2fd9ea3c998d3c3d7 | |
parent | 6dcda097ace32f57b0e2d82a2037bd9648d01bc1 [diff] |
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>