Re: [PATCH 1/1] xen-netfront: cast grant table reference first to type int

From: David Miller
Date: Wed Nov 02 2016 - 15:33:58 EST

From: Dongli Zhang <dongli.zhang@xxxxxxxxxx>
Date: Wed, 2 Nov 2016 09:04:33 +0800

> IS_ERR_VALUE() in commit 87557efc27f6a50140fb20df06a917f368ce3c66
> ("xen-netfront: do not cast grant table reference to signed short") would
> not return true for error code unless we cast ref first to type int.
> Signed-off-by: Dongli Zhang <dongli.zhang@xxxxxxxxxx>