virtio: i2c: Check notifier helpers for VIRTIO_CONFIG_IRQ_IDX
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 18 Apr 2023 03:54:54 +0000 (09:24 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 25 Apr 2023 02:56:55 +0000 (22:56 -0400)
commit91208dd297f2686b778210ffda49acbfe36bd3b6
tree3d8657283b6e3b442b7f25dcbccca14e5ca064b4
parent2a3f8b333b6efbc0ccaacb318fb9c9d53f25bcfd
virtio: i2c: Check notifier helpers for VIRTIO_CONFIG_IRQ_IDX

Since the driver doesn't support interrupts, we must return early when
index is set to VIRTIO_CONFIG_IRQ_IDX.

Fixes: 544f0278afca ("virtio: introduce macro VIRTIO_CONFIG_IRQ_IDX")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Message-Id: <d53ec8bc002001eafac597f6bd9a8812df989257.1681790067.git.viresh.kumar@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-user-i2c.c