diff options
Diffstat (limited to 'sys/dev/xen/blkfront/blkfront.c')
-rw-r--r-- | sys/dev/xen/blkfront/blkfront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c index 410afa0..6c222ea 100644 --- a/sys/dev/xen/blkfront/blkfront.c +++ b/sys/dev/xen/blkfront/blkfront.c @@ -960,7 +960,7 @@ blkif_queue_cb(void *arg, bus_dma_segment_t *segs, int nsegs, int error) /* install a grant reference. */ ref = gnttab_claim_grant_reference(&cm->gref_head); - KASSERT( ref != ENOSPC, ("grant_reference failed") ); + KASSERT( ref >= 0, ("grant_reference failed") ); gnttab_grant_foreign_access_ref( ref, |