state: check return value of of_property_count_strings
When a enum32 state variable node does not have a "names" property bail
out instead of continuing with an error value used as number of strings.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2a34749 commit e94d1eb5d313364d2659261c4658d37854eb9d70
@Sascha Hauer Sascha Hauer authored on 10 Sep 2015
Showing 1 changed file
View
common/state.c