diff options
author | Peter Mamonov <pmamonov@gmail.com> | 2015-09-02 19:20:50 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-09-04 07:38:57 +0200 |
commit | 2b016bf07832196eff163b41a695246728d402c5 (patch) | |
tree | 3cc38f5480e216b87ea6ca2ea76bd13b8cfa1094 /drivers/ata | |
parent | 069031f8ce752a9472019adb8bcbdac8722d773f (diff) | |
download | barebox-2b016bf07832196eff163b41a695246728d402c5.tar.gz barebox-2b016bf07832196eff163b41a695246728d402c5.tar.xz |
ata: ide-sff: fix integer overflow in ata_wait_ready()
Signed-off-by: Peter Mamonov <pmamonov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ide-sff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ide-sff.c b/drivers/ata/ide-sff.c index a8f2b26c55..e32cc3fc24 100644 --- a/drivers/ata/ide-sff.c +++ b/drivers/ata/ide-sff.c @@ -118,7 +118,7 @@ static int ata_wait_ready(struct ide_port *ide, unsigned timeout) { uint8_t status; uint64_t start = get_time_ns(); - uint64_t toffs = timeout * 1000 * 1000; + uint64_t toffs = timeout * MSECOND; do { status = ata_rd_status(ide); |