commit | c7eaa8b101e515ec0bbbd7130cf7998dd1979eba | [log] [tgz] |
---|---|---|
author | Marek Szyprowski <m.szyprowski@samsung.com> | Fri Jun 21 15:39:29 2019 +0200 |
committer | Marek Vasut <marex@denx.de> | Thu Aug 08 11:35:02 2019 +0200 |
tree | 640df07ee1e166da224c44f693a5a69ba12817c1 | |
parent | 8856317c5160c876625bf95845282ee087a40688 [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>