diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-25 17:56:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-30 14:42:54 +0100 |
commit | e2fce6b92c19e15593f98f354d19b2f7716896a9 (patch) | |
tree | e36a60fde968e5b2857121c894037e12daa24236 /common/password.c | |
parent | 72703410feff9ed44779b54a41ff30312e781279 (diff) | |
download | barebox-e2fce6b92c19e15593f98f354d19b2f7716896a9.tar.gz barebox-e2fce6b92c19e15593f98f354d19b2f7716896a9.tar.xz |
of: Check for NULL pointer in of_find_property
The console layer calls of_device_is_stdout_path for a new console. When
we are booting without devicetree then of_chosen is NULL which makes barebox
crash. Check for a NULL pointer in of_find_property to prevent this.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/password.c')
0 files changed, 0 insertions, 0 deletions