[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6f4e01f9-7d9b-9087-9d4a-4b61dc73dacb@intel.com>
Date: Fri, 24 Apr 2020 08:27:27 -0400
From: Dennis Dalessandro <dennis.dalessandro@...el.com>
To: Jason Gunthorpe <jgg@...pe.ca>,
Sudip Mukherjee <sudipm.mukherjee@...il.com>
Cc: Mike Marciniszyn <mike.marciniszyn@...el.com>,
Doug Ledford <dledford@...hat.com>,
linux-kernel@...r.kernel.org, linux-rdma@...r.kernel.org
Subject: Re: [PATCH] IB/rdmavt: return proper error code
On 4/23/2020 10:09 AM, Jason Gunthorpe wrote:
> On Thu, Apr 23, 2020 at 01:04:34PM +0100, Sudip Mukherjee wrote:
>> The function rvt_create_mmap_info() can return either NULL or an error
>> in ERR_PTR(). Check properly for both the error type and return the
>> error code accordingly.
>
> Please fix rvt_create_mmap_info to always return ERR_PTR, never null
> on failure.
>
> Thanks,
> Jason
>
Yes, that is a better approach.
-Denny
Powered by blists - more mailing lists