Files
linux/drivers
Zheng Yongjun b375ea083f net: sparx5: switchdev: fix possible NULL pointer dereference
[ Upstream commit 0906f3a3df ]

As the possible failure of the allocation, devm_kzalloc() may return NULL
pointer.
Therefore, it should be better to check the 'db' in order to prevent
the dereference of NULL pointer.

Fixes: 10615907e9 ("net: sparx5: switchdev: adding frame DMA functionality")
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:53 +02:00
..
2022-04-08 14:23:52 +02:00
2022-04-08 14:23:24 +02:00
2022-03-08 19:12:41 +01:00