From: Elias Oltmanns Date: Mon, 3 Nov 2008 10:01:08 +0000 (+0900) Subject: libata: Fix a potential race condition in ata_scsi_park_show() X-Git-Tag: v2.6.28-rc4~87^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a464189de350b050aa8f334bd4cc53ed406e56dd;p=pandora-kernel.git libata: Fix a potential race condition in ata_scsi_park_show() Peter Moulder has pointed out that there is a slight chance that a negative value might be passed to jiffies_to_msecs() in ata_scsi_park_show(). This is fixed by saving the value of jiffies in a local variable, thus also reducing code since the volatile variable jiffies is accessed only once. Signed-off-by: Elias Oltmanns Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed