From 83209dd4aaf07ca57e9984fe39359154269ac049 Mon Sep 17 00:00:00 2001 From: Robert Schwebel Date: Wed, 6 Dec 2017 14:41:30 +0100 Subject: qemu: remove patches (they are in ptxdist) The qemu patch maintained here is already in ptxdist, and the version there has moved on to 2.10.1 anyway. Signed-off-by: Robert Schwebel --- ...-out-of-bounds-check-for-multi-block-reads.diff | 48 ---------------------- patches/qemu-2.9.0/series | 1 - 2 files changed, 49 deletions(-) delete mode 100644 patches/qemu-2.9.0/0001-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.diff delete mode 100644 patches/qemu-2.9.0/series diff --git a/patches/qemu-2.9.0/0001-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.diff b/patches/qemu-2.9.0/0001-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.diff deleted file mode 100644 index a1514ad..0000000 --- a/patches/qemu-2.9.0/0001-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.diff +++ /dev/null @@ -1,48 +0,0 @@ -hw/sd: fix out-of-bounds check for multi block reads - -The current code checks if the next block exceeds the size of the card. -This generates an error while reading the last block of the card. -Do the out-of-bounds check when starting to read a new block to fix this. - -This issue became visible with increased error checking in Linux 4.13. - -Signed-off-by: Michael Olbrich ---- - hw/sd/sd.c | 12 ++++++------ - 1 file changed, 6 insertions(+), 6 deletions(-) - -diff --git a/hw/sd/sd.c b/hw/sd/sd.c -index ba47bff4db80..35347a5bbcde 100644 ---- a/hw/sd/sd.c -+++ b/hw/sd/sd.c -@@ -1797,8 +1797,13 @@ uint8_t sd_read_data(SDState *sd) - break; - - case 18: /* CMD18: READ_MULTIPLE_BLOCK */ -- if (sd->data_offset == 0) -+ if (sd->data_offset == 0) { -+ if (sd->data_start + io_len > sd->size) { -+ sd->card_status |= ADDRESS_ERROR; -+ return 0x00; -+ } - BLK_READ_BLOCK(sd->data_start, io_len); -+ } - ret = sd->data[sd->data_offset ++]; - - if (sd->data_offset >= io_len) { -@@ -1812,11 +1817,6 @@ uint8_t sd_read_data(SDState *sd) - break; - } - } -- -- if (sd->data_start + io_len > sd->size) { -- sd->card_status |= ADDRESS_ERROR; -- break; -- } - } - break; - --- -2.14.2 - - diff --git a/patches/qemu-2.9.0/series b/patches/qemu-2.9.0/series deleted file mode 100644 index ba8788f..0000000 --- a/patches/qemu-2.9.0/series +++ /dev/null @@ -1 +0,0 @@ -0001-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.diff -- cgit v1.2.3