diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-12-03 17:32:05 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2021-01-31 14:08:56 +0100 |
commit | 6ffc8e29934391e1569066ca1a1638d261839fa7 (patch) | |
tree | b5b314dad5e2917c6fe5ebe2fd9ea3c998d3c3d7 /arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | |
parent | ff52577c1b5188a5f25bd7d7d41730bb5de4b688 (diff) | |
download | u-boot-6ffc8e29934391e1569066ca1a1638d261839fa7.tar.gz u-boot-6ffc8e29934391e1569066ca1a1638d261839fa7.tar.xz u-boot-6ffc8e29934391e1569066ca1a1638d261839fa7.zip |
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>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c')
0 files changed, 0 insertions, 0 deletions