https://github.com/torvalds/linux
Revision 228b16cb13dfa2f77354a9b144a07e86e2dda01c authored by Andrew Lunn on 19 October 2014, 14:41:47 UTC, committed by David S. Miller on 19 October 2014, 16:46:31 UTC
The check for the presence or not of the optional switch function
get_phy_flags() called the function, rather than checked to see if it
is a NULL pointer. This causes a derefernce of a NULL pointer on all
switch chips except the sf2, the only switch to implement this call.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Fixes: 6819563e646a ("net: dsa: allow switch drivers to specify phy_device::dev_flags")
Cc: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a6d4518
History
Tip revision: 228b16cb13dfa2f77354a9b144a07e86e2dda01c authored by Andrew Lunn on 19 October 2014, 14:41:47 UTC
Net: DSA: Fix checking for get_phy_flags function
Tip revision: 228b16c
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.7 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 281.7 KB
Makefile -rw-r--r-- 53.4 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top