]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commit
ide: Correct improper smart self test counter reset in ide core.
authorBenoît Canet <benoit.canet@irqsave.net>
Wed, 4 Mar 2015 17:17:12 +0000 (17:17 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 5 Mar 2015 13:22:12 +0000 (13:22 +0000)
commitf593f25ed367ec1fef9d826e351242498033779c
treee7d4a339b9b1d08a73957b973612e2d5387449d4
parent8911317f89b335e3370e14a79eeec6c25511c491
ide: Correct improper smart self test counter reset in ide core.

The SMART self test counter was incorrectly being reset to zero,
not 1. This had the effect that on every 21st SMART EXECUTE OFFLINE:
 * We would write off the beginning of a dynamically allocated buffer
 * We forgot the SMART history
Fix this.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
Message-id: 1397336390-24664-1-git-send-email-benoit.canet@irqsave.net
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Cc: qemu-stable@nongnu.org
Acked-by: Kevin Wolf <kwolf@redhat.com>
[PMM: tweaked commit message as per suggestions from Markus]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/ide/core.c