In blkif_queue_cb(), test the return value from gnttab_claim_grant_reference()
for >= 0 instead of != ENOSPC.
This commit is contained in:
parent
e1908d0f3d
commit
d6dc44d02b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user