barebox-state: Check return value of state_find_type
state_find_type can fail in which case it returns NULL. Check the return value before dereferencing the pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> |
---|
|
src/barebox-state.c |
---|