Re: [PATCH] Add null pointer check to of_find_property

2008-05-12 Thread Timur Tabi
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 <[EMAIL PROTECTED]> Paul, please pick this up for 2.6.26. The legacy_serial driver

Re: [PATCH] Add null pointer check to of_find_property

2008-05-08 Thread Paul Mackerras
Michael Ellerman writes: > On Wed, 2008-05-07 at 14:19 -0500, 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 <[EMAIL PRO

Re: [PATCH] Add null pointer check to of_find_property

2008-05-07 Thread Michael Ellerman
On Wed, 2008-05-07 at 14:19 -0500, 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 <[EMAIL PROTECTED]> > --- > > This patch allows

Re: [PATCH] Add null pointer check to of_find_property

2008-05-07 Thread Grant Likely
On Wed, May 7, 2008 at 1:19 PM, Timur Tabi <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> Acked-by:

[PATCH] Add null pointer check to of_find_property

2008-05-07 Thread Timur Tabi
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 <[EMAIL PROTECTED]> --- This patch allows callers to do this: np = of_find_compatible_node(...); prop = of_get