Re: [PATCH for-next] RDMA/hns: Fix wrong judgments of udata->outlen

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

 



On Tue, Mar 10, 2020 at 09:06:09PM +0800, Weihang Li wrote:
> These judgments were used to keep the compatibility with older versions of
> userspace that don't have the field named "cap_flags" in structure
> hns_roce_ib_create_cq_resp. But it will be wrong to compare outlen with
> the size of resp if another new field were added in resp. oulen should be
> compared with the end offset of cap_flags in resp.
> 
> Fixes: 4f8f0d5e33dd ("RDMA/hns: Package the flow of creating cq")
> Signed-off-by: Weihang Li <liweihang@xxxxxxxxxx>
> ---
> Related discussions can be found at:
> https://patchwork.kernel.org/patch/11372851/ 
>  drivers/infiniband/hw/hns/hns_roce_cq.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Applied to for-next, thanks

Jason



[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