aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-07-06 17:27:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-07-06 17:27:29 +0000
commitde3105d2944fab37e35e0bad4be047b5843ed8f8 (patch)
tree7393a88996addffd20da3a33bd4d35a076261cac /target
parent4ed4fbe42aef97355ac4ec2db952c7f4b9d7f9e2 (diff)
downloadmaster-187ad058-de3105d2944fab37e35e0bad4be047b5843ed8f8.tar.gz
master-187ad058-de3105d2944fab37e35e0bad4be047b5843ed8f8.tar.bz2
master-187ad058-de3105d2944fab37e35e0bad4be047b5843ed8f8.zip
ar71xx: fix kernel Oops in at803x_link_change_notify
r45954 ("ar71xx: fix 100/10mbps ethernet link issues on mynet range extender") introduced a pdata based modification of the tx_clk_dly. But it was not checked if pdata actually existed. This caused a page fault on all devices which didn't have at803x_platform_data specified for an at803x based device. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46200 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch b/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch
index 34b9bc06db..0d021ac7bd 100644
--- a/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch
+++ b/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch
@@ -141,7 +141,7 @@
priv->phy_reset = false;
}
}
-+ if (pdata->fixup_rgmii_tx_delay &&
++ if (pdata && pdata->fixup_rgmii_tx_delay &&
+ phydev->speed != priv->prev_speed) {
+ switch (phydev->speed) {
+ case SPEED_10: