commands: of_property: fix crashes on incorrect number of arguments
of_property needs at least two parameters, the path and the property
name. If we supply less, we risk crashes, e.g. by running
of_property -fs /test

Verify we got at least two parameters.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8193883 commit 02e1547fc1c6dc8f7f1bffc2f1c323bc0866eb2a
@Ahmad Fatoum Ahmad Fatoum authored on 30 Mar 2020
Sascha Hauer committed on 31 Mar 2020
Showing 1 changed file
View
commands/of_property.c