openwrt/package/kernel/qca-nss-dp/patches
Petr Štetiar 03455e79d7
qca-nss-dp: fix oops in nss_dp_probe
Currently kernel crashes when of_phy_connect has issues:

 Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000000000000308
 ...
 pc : phy_attached_print+0x28/0x1b0
 lr : phy_attached_info+0x14/0x20
 ...
 Call trace:
  phy_attached_print+0x28/0x1b0
  phy_attached_info+0x14/0x20
  nss_dp_adjust_link+0x544/0x6c4 [qca_nss_dp]

of_phy_connect returns either pointer or NULL, so can't be checked with
IS_ERR macro.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 38c7cf0e69)
2023-06-12 22:10:18 +02:00
..
0001-edma_tx_rx-support-newer-kernels-time-stamping-API.patch
0002-nss_dp_main-make-phy-mode-code-compatible-with-newer.patch
0003-Drop-_nocache-variants-of-ioremap.patch
0004-EDMA-Fix-NAPI-packet-counting.patch
0005-EDMA-Use-NAPI_POLL_WEIGHT-as-NAPI-weight.patch
0006-NSS-DP-fix-of_get_mac_address.patch
0007-NSS-DP-implement-ethernet-IOCTL-s.patch
0008-switchdev-remove-the-transaction-structure.patch
0009-switchdev-use-new-switchdev-flags.patch
0010-switchdev-fix-FDB-roaming.patch
0011-treewide-fix-confusing-printing-of-registered-netdev.patch
0012-gmac-syn-xgmac-silence-debug-log-on-probe.patch
0013-nss_dp_main-Use-a-phy-handle-property-to-connect-to-.patch
0014-nss-dp-edma-v1-use-NAPI-GRO-by-default.patch
0015-nss-dp-allow-setting-netdev-name-from-DTS.patch