]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:21 +0000 (19:26 +0200)
commit316590d25ea05263eb4869fa668bf8a78fa04c1c
tree5f9947af88d21dbcde601c6031a8facd85a6c27a
parent5568552ac83161a71b02f15e1d9c5b388d3da0a1
net/xen-netback: off by one in BUG_ON() condition

[ Upstream commit 50c2e4dd6749725338621fff456b26d3a592259f ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netback/netback.c