Re: [PATCH] RDMA/cxgb4: add null-ptr-check after ip_dev_find()

From: Leon Romanovsky
Date: Thu Feb 02 2023 - 03:18:20 EST



On Wed, 01 Feb 2023 09:21:03 -0800, Nikita Zhandarovich wrote:
> ip_dev_find() may return NULL and assign it to pdev which is
> dereferenced later.
> Fix this by checking the return value of ip_dev_find() for NULL
> similar to the way it is done with other instances of said function.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> [...]

Applied, thanks!

[1/1] RDMA/cxgb4: add null-ptr-check after ip_dev_find()
https://git.kernel.org/rdma/rdma/c/ef42520240aacf

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>