Skip to content
Commit ed3a37a2 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Marek Vasut
Browse files

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: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
parent 160102d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment