vfio/display: Fix vfio_display_edid_init() error path
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Mon, 1 Jul 2024 01:48:09 +0000 (09:48 +0800)
committerCédric Le Goater <clg@redhat.com>
Tue, 9 Jul 2024 09:50:37 +0000 (11:50 +0200)
commit83d90192026eaded6319a6d27466ad7d606a27e0
treefdff3c76879e6d5d477bb51aaaf791972e53cabf
parentf15da599a1c5326e105425a74d2fb004a2a2649e
vfio/display: Fix vfio_display_edid_init() error path

vfio_display_edid_init() can fail for many reasons and return silently.
It would be good to report the error.

Old mdev driver may not support vfio edid region and we allow to go
through in this case.

vfio_display_edid_update() isn't changed because it can be called at
runtime when UI changes (i.e. window resize).

Fixes: 08479114b0de ("vfio/display: add edid support.")
Suggested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/vfio/display.c