]> git.karo-electronics.de Git - linux-beck.git/commit
xen-blkback: fix foreach_grant_safe to handle empty lists
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 18 Mar 2013 16:49:33 +0000 (17:49 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 19 Mar 2013 12:53:15 +0000 (08:53 -0400)
commit217fd5e709f029c125a9d39de5f13387407f131a
tree0a288b4f23256fda388ccb0528074399320f7477
parent29d0b218c87ace1078e08bb32c2e72fc96fa3db3
xen-blkback: fix foreach_grant_safe to handle empty lists

We may use foreach_grant_safe in the future with empty lists, so make
sure we can handle them.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: xen-devel@lists.xen.org
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c