]> Git Repo - u-boot.git/commit
thor: fix crash after usb initialization failure
authorMarek Szyprowski <[email protected]>
Fri, 21 Jun 2019 13:39:29 +0000 (15:39 +0200)
committerMarek Vasut <[email protected]>
Thu, 8 Aug 2019 09:35:02 +0000 (11:35 +0200)
commited3a37a248532367a264380762edf4757f2603f4
tree640df07ee1e166da224c44f693a5a69ba12817c1
parent160102d112ce6e94b2c924fe2aaafff79808dcba
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 <[email protected]>
cmd/thordown.c
This page took 0.03222 seconds and 4 git commands to generate.