Re: [PATCH v2] of: handle NULL node in next_child iterators

2014-06-02 Thread Grant Likely
On Wed, 28 May 2014 10:39:02 -0700, Florian Fainelli wrote: > Add an early check for the node argument in __of_get_next_child and > of_get_next_available_child() to avoid dereferencing a NULL node pointer > a few lines after. > > CC: Daniel Mack > Signed-off-by: Florian Fainelli Applied, than

[PATCH v2] of: handle NULL node in next_child iterators

2014-05-28 Thread Florian Fainelli
Add an early check for the node argument in __of_get_next_child and of_get_next_available_child() to avoid dereferencing a NULL node pointer a few lines after. CC: Daniel Mack Signed-off-by: Florian Fainelli --- Changes in v2: - also fix __of_get_next_child against NULL node argument drivers/o