q800: fix coverity warning CID 1412799
commit80aab795f8a6d53cdeb55cc6ffac50b5e5ce9dc2
authorLaurent Vivier <laurent@vivier.eu>
Mon, 10 Feb 2020 13:22:52 +0000 (10 14:22 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 12 Mar 2020 15:05:48 +0000 (12 16:05 +0100)
treef4d24f1fd7bead0bd376e3821bfd42bd7ce36d39
parent104933c4a973960dea605b06fcd5d0d478255d77
q800: fix coverity warning CID 1412799

Check the return value of blk_write() and log an error if any

Fixes: Coverity CID 1412799 (Error handling issues)
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200210132252.381343-1-laurent@vivier.eu>
hw/misc/mac_via.c