Skip to content
Commit 6dd74542 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by David S. Miller
Browse files

pxa168_eth: fix mdiobus_scan() error check



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: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3df8f4c6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment