[lvc-project] [PATCH] RDMA/cxgb4: add null-ptr-check after	ip_dev_find()
    Leon Romanovsky 
    leon at kernel.org
       
    Thu Feb  2 11:17:53 MSK 2023
    
    
  
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 at kernel.org>
    
    
More information about the lvc-project
mailing list