hw/sd: sd: Actually perform the erase operation
authorBin Meng <bin.meng@windriver.com>
Sat, 20 Feb 2021 08:58:13 +0000 (16:58 +0800)
committerSoonKyu Park <sk7.park@samsung.com>
Tue, 23 Nov 2021 04:45:39 +0000 (13:45 +0900)
commit9e82b956363548111d9a087194a69e3531481bee
treeaca7810a78f4757384276e63b21d70edc25f0655
parenteda3190bf7581fbcd9e1815df016e7a0f6650225
hw/sd: sd: Actually perform the erase operation

Git-commit: 818a5cdcfcf0a55d60b59b2cb74482ef4ba6b205
References: bsc#1175144, CVE-2020-17380, bsc#1176681, CVE-2020-25085
References: bsc#1182282, CVE-2021-3409

At present the sd_erase() does not erase the requested range of card
data to 0xFFs. Let's make the erase operation actually happen.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-Id: <1613811493-58815-1-git-send-email-bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Bruce Rogers <brogers@suse.com>
hw/sd/sd.c