OF: base: add sanity checks to of_new/delete_property
This adds some sanity checks to of_new_property and of_delete_property.
Also, value pointer is always allocated even with zero length to allow
empty properties to be distinguished from non-existing properties.
Finally, data passed to of_new_property is only copied if non-NULL.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1e2a238 commit d4d586cbacbf63b2f3f3b06c1c86bd0ae4cacca3
@Sebastian Hesselbarth Sebastian Hesselbarth authored on 24 Jun 2013
Sascha Hauer committed on 24 Jun 2013
Showing 1 changed file
View
drivers/of/base.c