diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2019-06-21 15:39:29 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-08-08 11:35:02 +0200 |
commit | ed3a37a248532367a264380762edf4757f2603f4 (patch) | |
tree | 640df07ee1e166da224c44f693a5a69ba12817c1 /board/xilinx/zynq/zynq-cc108 | |
parent | 160102d112ce6e94b2c924fe2aaafff79808dcba (diff) |
thor: fix crash after usb initialization failure
Registration of USB download gadget might fail for various reasons, so
add a check for g_dnl_register() funtion return value. Without this fix,
thor_init() will try to access the registered gadget structures resulting
in NULL pointer dereference issue.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'board/xilinx/zynq/zynq-cc108')
0 files changed, 0 insertions, 0 deletions