diff options
| author | Elias Oltmanns <[email protected]> | 2008-11-03 10:01:08 +0000 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2008-11-04 06:08:24 +0000 |
| commit | a464189de350b050aa8f334bd4cc53ed406e56dd (patch) | |
| tree | d4acc5c1f65eca5522bbd28ae2702e54a1f8db0a /net/unix/af_unix.c | |
| parent | sata_nv: fix generic, nf2/3 detection regression (diff) | |
| download | kernel-a464189de350b050aa8f334bd4cc53ed406e56dd.tar.gz kernel-a464189de350b050aa8f334bd4cc53ed406e56dd.zip | |
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 <[email protected]>
Signed-off-by: Tejun Heo <tj.kernel.org>
Signed-off-by: Jeff Garzik <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
