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>
1 parent 755a696 commit 368c3cecb2cc27cba1f9be8d33c886548e49a042
@Sascha Hauer Sascha Hauer authored on 10 Sep 2015
Showing 1 changed file
View
src/barebox-state.c