Thread (5 messages) 5 messages, 4 authors, 2008-05-12

Re: [PATCH] Add null pointer check to of_find_property

flat view

From: Timur Tabi <hidden>
Date: 2008-05-12 16:46:53

Timur Tabi wrote:
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.

Signed-off-by: Timur Tabi <redacted>
Paul, please pick this up for 2.6.26.  The legacy_serial driver will crash
without it if there's no 'chosen' node in the device tree.  I'm sure there are
other drivers that would crash similarly if given a device tree with missing nodes.

-- 
Timur Tabi
Linux kernel developer at Freescale
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help