]> git.ipfire.org Git - thirdparty/qemu.git/commit
ide: Correct improper smart self test counter reset in ide core.
authorBenoît Canet <benoit.canet@irqsave.net>
Sat, 12 Apr 2014 20:59:50 +0000 (22:59 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 25 Jun 2014 20:56:17 +0000 (15:56 -0500)
commitc5dae2f4c50ef848f224da718154af4438862cdb
treed4bf23633b8dde5cc56a10977b74f882efb4db80
parent3239a20294691eaaa81f41654e57fc9543234eee
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>
(cherry picked from commit 940973ae0b45c9b6817bab8e4cf4df99a9ef83d7)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ide/core.c