[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <81dba278-f38e-3043-c1f7-2a0f00ae07d7@oracle.com>
Date: Wed, 8 Nov 2017 16:20:32 -0500
From: Boris Ostrovsky <boris.ostrovsky@...cle.com>
To: Juergen Gross <jgross@...e.com>,
Colin King <colin.king@...onical.com>,
xen-devel@...ts.xenproject.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] xen/pvcalls: fix unsigned less than zero error check
On 11/03/2017 05:01 AM, Juergen Gross wrote:
> On 03/11/17 09:42, Colin King wrote:
>> From: Colin Ian King <colin.king@...onical.com>
>>
>> The check on bedata->ref is never true because ref is an unsigned
>> integer. Fix this by assigning signed int ret to the return of the
>> call to gnttab_claim_grant_reference so the -ve return can be checked.
>>
>> Detected by CoverityScan, CID#1460358 ("Unsigned compared against 0")
>>
>> Fixes: 219681909913 ("xen/pvcalls: connect to the backend")
>> Signed-off-by: Colin Ian King <colin.king@...onical.com>
> Reviewed-by: Juergen Gross <jgross@...e.com>
Applied to for-linus-4.15.
-boris
Powered by blists - more mailing lists