Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
9p/virtio: fix off-by-one error in sg list bounds check
Because the value of limit is VIRTQUEUE_NUM, if index is equal to limit, it will cause sg array out of bounds, so correct the judgement of BUG_ON. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Yiwen Jiang <[email protected]> Reported-By: Dan Carpenter <[email protected]> Acked-by: Jun Piao <[email protected]> Cc: [email protected] Signed-off-by: Dominique Martinet <[email protected]>
- Loading branch information