Merge remote-tracking branch 'cohuck/virtio-ccw-upstr' into staging
# By Cornelia Huck # Via Cornelia Huck * cohuck/virtio-ccw-upstr: virtio-ccw: Queue sanity check for notify hypercall.
This commit is contained in:
commit
fad5593ca6
@ -31,6 +31,9 @@ static int virtio_ccw_hcall_notify(const uint64_t *args)
|
|||||||
if (!sch || !css_subch_visible(sch)) {
|
if (!sch || !css_subch_visible(sch)) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
if (queue >= VIRTIO_PCI_QUEUE_MAX) {
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
virtio_queue_notify(virtio_ccw_get_vdev(sch), queue);
|
virtio_queue_notify(virtio_ccw_get_vdev(sch), queue);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user