]> git.baikalelectronics.ru Git - 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)
commit3461dd84824943463ca110c3d9ef5140e2c8ab7b
tree10688602499cf59e79811ee41c8ceea0a9910b12
parentca40813f64c42855b9c627a111fb93aedd2e3a19
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: 98a18faca87e ('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