diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-11-10 23:50:10 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-11-10 23:50:10 -0800 |
commit | d1169ea4907b9b4a8cd73ed60d4e96160d05212f (patch) | |
tree | cd6ea95f9bf30c0a61a1a90f519c753ccefbcac0 /dos | |
parent | fc9c70d47083adcb3c2fae440c44a1dc4895a8fd (diff) | |
download | syslinux-d1169ea4907b9b4a8cd73ed60d4e96160d05212f.tar.gz |
dos: fix the soft-locking loop
Code the soft-locking loop correctly.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'dos')
-rw-r--r-- | dos/syslinux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dos/syslinux.c b/dos/syslinux.c index 31797075..1cdf418b 100644 --- a/dos/syslinux.c +++ b/dos/syslinux.c @@ -437,7 +437,7 @@ void lock_device(int level) if (!hard_lock) { /* Assume hierarchial "soft" locking supported */ - while ((lock_level >> 8) < level) { + while (lock_level < level) { int new_level = lock_level + 1; err = do_lock(new_level); if (err) { |