]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netfront: do not cast grant table reference to signed short
authorDongli Zhang <dongli.zhang@oracle.com>
Mon, 31 Oct 2016 05:38:29 +0000 (13:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2016 20:05:32 +0000 (16:05 -0400)
commit45a87cdb96c39cced742f5e2803295c9c60525b1
tree655648d282d40aac011d0adfa08ef362c97bde05
parent119a4294349d95206ffe690de6de28c357409d3a
xen-netfront: do not cast grant table reference to signed short

While grant reference is of type uint32_t, xen-netfront erroneously casts
it to signed short in BUG_ON().

This would lead to the xen domU panic during boot-up or migration when it
is attached with lots of paravirtual devices.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c