]> git.proxmox.com Git - mirror_qemu.git/commit
hw/sd/ssi-sd: fix error handling in ssi_sd_realize
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 17 Mar 2020 12:57:41 +0000 (15:57 +0300)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 17 Mar 2020 16:30:03 +0000 (17:30 +0100)
commit709dfb64925ed2b2978bf4c17ab98b2c7a9a05c1
tree0398a1f3045122c77dd5c79d56e9453d7c98f900
parent526ab8e8630f17f6f412c160d4e9571766960be9
hw/sd/ssi-sd: fix error handling in ssi_sd_realize

It's wrong to use same err object as errp parameter for several
function calls without intermediate checking for error: we'll crash if
try to set err object twice. Fix that.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200317125741.15301-1-vsementsov@virtuozzo.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/sd/ssi-sd.c