Re: [PATCH] pxa168_eth: fix mdiobus_scan() error check
From: David Miller <davem@davemloft.net>
Date: 2016-05-03 19:03:57
From: David Miller <davem@davemloft.net>
Date: 2016-05-03 19:03:57
From: Sergei Shtylyov <redacted> 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 <arnd@arndb.de> Signed-off-by: Sergei Shtylyov <redacted>
Applied.