Re: [PATCH] pxa168_eth: fix mdiobus_scan() error check

2016-05-03 Thread David Miller
From: Sergei Shtylyov Date: Sat, 30 Apr 2016 23:35:11 +0300 > Since mdiobus_scan() returns either an error code or NULL on error, the > driver should check for both, not only for NULL, otherwise a crash is > imminent... > > Reported-by: Arnd Bergmann

Re: [PATCH] pxa168_eth: fix mdiobus_scan() error check

2016-05-01 Thread Sergei Shtylyov
On 05/01/2016 11:25 PM, Sergei Shtylyov wrote: Since mdiobus_scan() returns either an error code or NULL on error, the driver should check for both, not only for NULL, otherwise a crash is imminent... Reported-by: Arnd Bergmann Signed-off-by: Sergei Shtylyov

Re: [PATCH] pxa168_eth: fix mdiobus_scan() error check

2016-05-01 Thread Sergei Shtylyov
Hello. On 05/01/2016 07:05 PM, Florian Fainelli wrote: Since mdiobus_scan() returns either an error code or NULL on error, the driver should check for both, not only for NULL, otherwise a crash is imminent... Reported-by: Arnd Bergmann Signed-off-by: Sergei Shtylyov

Re: [PATCH] pxa168_eth: fix mdiobus_scan() error check

2016-05-01 Thread Florian Fainelli
Le 30/04/2016 13:35, Sergei Shtylyov a écrit : > Since mdiobus_scan() returns either an error code or NULL on error, the > driver should check for both, not only for NULL, otherwise a crash is > imminent... > > Reported-by: Arnd Bergmann > Signed-off-by: Sergei Shtylyov

[PATCH] pxa168_eth: fix mdiobus_scan() error check

2016-04-30 Thread Sergei Shtylyov
Since mdiobus_scan() returns either an error code or NULL on error, the driver should check for both, not only for NULL, otherwise a crash is imminent... Reported-by: Arnd Bergmann Signed-off-by: Sergei Shtylyov --- The patch is against