diff options
| author | jiangyiwen <jiangyiwen@huawei.com> | 2018-08-03 12:11:34 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-09 20:04:33 +0200 |
| commit | 1d2e1e399f86ca085eb85a9f68c20cf4fbf2c79d (patch) | |
| tree | 86f555d3f35343d9ba4f96b4477f1fa74bb71899 /tools/perf/scripts/python | |
| parent | 2c9ffc9d440d31efa23136f5a64eebccfc2ec553 (diff) | |
9p/virtio: fix off-by-one error in sg list bounds check
commit 23cba9cbde0bba05d772b335fe5f66aa82b9ad19 upstream.
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: Yiwen Jiang <jiangyiwen@huawei.com>
Reported-By: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jun Piao <piaojun@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
