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