Alex Bennée <[email protected]> writes: > Previously the guest controlled the value of last_sec and wasn't > particularly careful to check it didn't exceed the media size. We > can't re-use drv->last_sec as that changes as we do operations so we > set media_last_sect when the geometry is probed. > > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3800 > Signed-off-by: Alex Bennée <[email protected]>
Cc: [email protected] -- Alex Bennée Virtualisation Tech Lead @ Linaro
