Files
linux/drivers/net/ethernet
Hao Chen 4d07c5936c net: hns3: add NULL pointer check for hns3_set/get_ringparam()
When pci devices init failed and haven't reinit, priv->ring is
NULL and hns3_set/get_ringparam() will access priv->ring. it
causes call trace.

So, add NULL pointer check for hns3_set/get_ringparam() to
avoid this situation.

Fixes: 5668abda09 ("net: hns3: add support for set_ringparam")
Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-03-26 09:16:49 -07:00
..
2022-02-07 19:53:38 -08:00
2022-01-09 16:52:18 -08:00
2022-03-04 12:02:19 +00:00
2022-01-09 16:52:18 -08:00
2022-03-04 12:02:19 +00:00
2022-02-11 14:39:08 -08:00
2022-01-09 16:52:18 -08:00
2022-03-04 12:02:19 +00:00
2022-03-04 12:02:19 +00:00
2022-02-12 18:20:04 +01:00