Re: [PATCH -next] IB/uverbs: fix an potential error pointer dereference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 04 Aug 2023 10:25:25 +0800, Xiang Yang wrote:
> Smatch reports the warning below:
> drivers/infiniband/core/uverbs_std_types_counters.c:110
> ib_uverbs_handler_UVERBS_METHOD_COUNTERS_READ() error: 'uattr'
> dereferencing possible ERR_PTR()
> 
> the return value of uattr maybe ERR_PTR(-ENOENT), fix this by checking
> the value of uattr before using it.
> 
> [...]

Applied, thanks!

[1/1] IB/uverbs: fix an potential error pointer dereference
      https://git.kernel.org/rdma/rdma/c/26b7d1a27167e7

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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux