Re: [PATCH] IB/core: type promotion bug in rdma_rw_init_one_mr()

Jason Gunthorpe
2018-07-04T14:49:47Z

On Wed, Jul 04, 2018 at 12:55:41PM +0200, HÃ¥kon Bugge wrote:
> Is:
>
> if (ret < (int)nents) {
>
> a more intuitive fix?

That could lead to truncation/force negativeness of nents :(

I wonder how many bugs like this we have.

Jason
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html