mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
hw/sd/sdcard: Make iolen unsigned
I/O request length can not be negative. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20200630133912.9428-15-f4bug@amsat.org>
This commit is contained in:
parent
aecaa05922
commit
692fb0ef31
2 changed files with 2 additions and 2 deletions
|
@ -1982,7 +1982,7 @@ uint8_t sd_read_byte(SDState *sd)
|
|||
{
|
||||
/* TODO: Append CRCs */
|
||||
uint8_t ret;
|
||||
int io_len;
|
||||
uint32_t io_len;
|
||||
|
||||
if (!sd->blk || !blk_is_inserted(sd->blk) || !sd->enable)
|
||||
return 0x00;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue