Re: [PATCH for-next 03/11] RDMA/hns: Check return value of kmalloc with macro

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

 



On 2020/3/20 2:18, Jason Gunthorpe wrote:
> On Thu, Mar 19, 2020 at 09:24:50PM +0800, Weihang Li wrote:
>> From: Yixian Liu <liuyixian@xxxxxxxxxx>
>>
>> As the return value of kmalloc may be null or error code, use kernel macro
>> to do return value check.
> 
> kmalloc always returns null, do not use IS_ERR_OR_NULL
> 
> Jason
> 

OK, will drop this one in v2.

Thank you
Weihang



[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