mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
Update function of_find_property() to return NULL if the device_node passed to it is also NULL. Otherwise, passing NULL will cause a null pointer dereference. Without this, the legacy_serial driver will crash if there's no 'chosen' node in the device tree. Signed-off-by: Timur Tabi <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>