[PATCH 0/2] net: microchip: Fix potential null-ptr-deref due to create_singlethread_workqueue()

Shang XiaoJing shangxiaojing at huawei.com
Mon Nov 14 05:38:51 PST 2022


There are some functions call create_singlethread_workqueue() without
checking ret value, and the NULL workqueue_struct pointer may causes
null-ptr-deref. Will be fixed by this patch.

Shang XiaoJing (2):
  net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init()
  net: microchip: sparx5: Fix potential null-ptr-deref in
    sparx_stats_init() and sparx5_start()

 drivers/net/ethernet/microchip/lan966x/lan966x_ethtool.c | 3 +++
 drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c   | 3 +++
 drivers/net/ethernet/microchip/sparx5/sparx5_main.c      | 3 +++
 3 files changed, 9 insertions(+)

-- 
2.17.1




More information about the linux-arm-kernel mailing list