diff options
author | 2016-06-04 21:16:52 +0200 | |
---|---|---|
committer | 2016-06-04 14:29:52 -0700 | |
commit | 0e5760440842eee57ff573251e95289e2ee7b15f (patch) | |
tree | b8599569a9211732b0d9abe3648829946d0618b2 /net/dsa/tag_dsa.c | |
parent | net: Add docbook description for 'mtu' arg to skb_gso_validate_mtu() (diff) | |
download | wireguard-linux-0e5760440842eee57ff573251e95289e2ee7b15f.tar.xz wireguard-linux-0e5760440842eee57ff573251e95289e2ee7b15f.zip |
net: dsa: slave: chip data is optional, don't dereference NULL
The new binding does not make use of dsa_chip_data, a.k.a cd. When
retrieving the size of the EEPROM attached to a switch, don't assume
there is a cd attached to the switch structure.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/tag_dsa.c')
0 files changed, 0 insertions, 0 deletions