Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 23cba9cb authored by jiangyiwen's avatar jiangyiwen Committed by Dominique Martinet
Browse files

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/5B63D5F6.6080109@huawei.com


Signed-off-by: default avatarYiwen Jiang <jiangyiwen@huawei.com>
Reported-By: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJun Piao <piaojun@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDominique Martinet <dominique.martinet@cea.fr>
parent c69f297d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment