]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net/xen-netback: off by one in BUG_ON() condition
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 11 Jul 2015 22:20:55 +0000 (01:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jul 2015 22:40:52 +0000 (15:40 -0700)
commit50c2e4dd6749725338621fff456b26d3a592259f
tree10688602499cf59e79811ee41c8ceea0a9910b12
parentf760b87f8f12eb262f14603e65042996fe03720e
net/xen-netback: off by one in BUG_ON() condition

The > should be >=.  I also added spaces around the '-' operations so
the code is a little more consistent and matches the condition better.

Fixes: f53c3fe8dad7 ('xen-netback: Introduce TX grant mapping')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c