Commit 41252f5
vhost-user: fix vring base caculating
When the queue is not enabled, it should not call get_avail_idx which
will cause an error. So, default to 0 in this situation.
Signed-off-by: Yan Wang <[email protected]>1 parent 529fe3b commit 41252f5
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
514 | 518 | | |
515 | 519 | | |
516 | 520 | | |
| |||
0 commit comments