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 kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0002-nss_dp_main-make-phy-mode-code-compatible-with-newer.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0003-Drop-_nocache-variants-of-ioremap.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0004-EDMA-Fix-NAPI-packet-counting.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0005-EDMA-Use-NAPI_POLL_WEIGHT-as-NAPI-weight.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0006-NSS-DP-fix-of_get_mac_address.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0007-NSS-DP-implement-ethernet-IOCTL-s.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0008-switchdev-remove-the-transaction-structure.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0009-switchdev-use-new-switchdev-flags.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0010-switchdev-fix-FDB-roaming.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0011-treewide-fix-confusing-printing-of-registered-netdev.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0012-gmac-syn-xgmac-silence-debug-log-on-probe.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0013-nss_dp_main-Use-a-phy-handle-property-to-connect-to-.patch qca-nss-dp: fix oops in nss_dp_probe 2023-06-12 22:10:18 +02:00
0014-nss-dp-edma-v1-use-NAPI-GRO-by-default.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00
0015-nss-dp-allow-setting-netdev-name-from-DTS.patch kernel: add Qualcomm NSS dataplane ethernet driver 2023-01-16 12:42:23 +01:00