]> git.proxmox.com Git - qemu.git/commit - hw/block/m25p80.c
m25p80.c: Return state to IDLE after COLLECTING
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Sat, 26 Jan 2013 01:58:38 +0000 (17:58 -0800)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Sun, 27 Jan 2013 00:00:19 +0000 (01:00 +0100)
commita56d305a6d706cd75cfe0fa473f45772694f2a4a
treeb9106c607bb6830d902cb18593ce08bd995a4781
parent2f991adb8e8cad3233ae653be12cfd72d44168ba
m25p80.c: Return state to IDLE after COLLECTING

Default to moving back to the IDLE state after the COLLECTING_DATA
state. For a well behaved guest this patch has no consequence, but
A bad guest could crash QEMU by using one of the erase commands
followed by a longer than 5 byte argument (undefined behaviour).

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/m25p80.c