lkml.org 
[lkml]   [2018]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH net-next] net: ethernet: ti: cpsw-phy-sel: check bus_find_device() ret value
On Wed, May 16, 2018 at 2:01 AM, Grygorii Strashko
<grygorii.strashko@ti.com> wrote:
> This fixes klockworks warnings: Pointer 'dev' returned from call to
> function 'bus_find_device' at line 179 may be NULL and will be dereferenced
> at line 181.

> + dev_err(dev, "unable to find platform device for %s\n",
> + of_node_full_name(node));

Sorry, isn't %pOF works for this?

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2018-05-16 01:07    [W:0.054 / U:2.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site