[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VdXjiis9R6a1EZO9q3fawB_nSmJhqRSvv_7yggTr-EBOA@mail.gmail.com>
Date: Wed, 16 May 2018 02:07:01 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Grygorii Strashko <grygorii.strashko@...com>
Cc: "David S. Miller" <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>, Sekhar Nori <nsekhar@...com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux OMAP Mailing List <linux-omap@...r.kernel.org>
Subject: Re: [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@...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
Powered by blists - more mailing lists