difos/target/linux/generic
DENG Qingfang 764cc5c6a6 generic: mt7530: fix null pointer dereferencing in port5 setup
The 2nd gmac of mediatek soc ethernet may not be connected to a PHY
and a phy-handle isn't always available.
Unfortunately, mt7530 dsa driver assumes that the 2nd gmac is always
connected to switch port 5 and setup mt7530 according to phy address
of 2nd gmac node, causing null pointer dereferencing when phy-handle
isn't defined in dts.
This commit fix this setup code by checking return value of
of_parse_phandle before using it.

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
2020-04-04 14:56:14 +08:00
..
backport-4.14 kernel: backport out-of-memory fix for non-Ethernet devices 2020-03-11 08:40:45 +01:00
backport-4.19 kmod-sched-cake: switch to in-tree cake for 4.19+ 2020-04-01 21:59:45 +01:00
backport-5.4 generic: mt7530: fix null pointer dereferencing in port5 setup 2020-04-04 14:56:14 +08:00
files kernel: rtl8367b: add configuration for extif2 2020-03-21 12:58:29 +08:00
hack-4.14 kernel: bump 4.14 to 4.14.172 2020-03-09 20:43:53 +01:00
hack-4.19 kernel: bump 4.19 to 4.19.108 2020-03-09 20:43:53 +01:00
hack-5.4 kernel: bump 5.4 to 5.4.28 2020-03-28 13:03:02 +01:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-4.14 kernel: backport mtd partition address fix sent upstream 2020-03-09 11:49:42 +01:00
pending-4.19 generic: 4.19: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
pending-5.4 kernel: generic: 5.4: fix mtd concat panic on read/write functions 2020-03-29 16:23:57 +02:00
config-4.14 kernel: Sort generic configuration 2020-02-24 23:25:28 +01:00
config-4.19 treewide: Don't diverge from upstream default HZ settings on 4.19 2020-03-29 17:27:54 +01:00
config-5.4 kernel: Enable CMOS RTC support on 5.4 2020-03-29 21:41:43 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00