summaryrefslogtreecommitdiff
path: root/board/xilinx/zynq/zynq-cc108
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2019-06-21 15:39:29 +0200
committerMarek Vasut <marex@denx.de>2019-08-08 11:35:02 +0200
commited3a37a248532367a264380762edf4757f2603f4 (patch)
tree640df07ee1e166da224c44f693a5a69ba12817c1 /board/xilinx/zynq/zynq-cc108
parent160102d112ce6e94b2c924fe2aaafff79808dcba (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