xen-netfront: cast grant table reference first to type int
authorDongli Zhang <dongli.zhang@oracle.com>
Wed, 2 Nov 2016 01:04:33 +0000 (09:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Nov 2016 19:33:36 +0000 (15:33 -0400)
commit269ebce4531b8edc4224259a02143181a1c1d77c
tree60b0d28e753d5a82bd4ad84f98010c75841d37bb
parent4fd19c15decedd06d707e2691c24fce08700e2b1
xen-netfront: cast grant table reference first to type int

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@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c