aboutsummaryrefslogtreecommitdiffstats
path: root/dos
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-11-10 23:50:10 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-11-10 23:50:10 -0800
commitd1169ea4907b9b4a8cd73ed60d4e96160d05212f (patch)
treecd6ea95f9bf30c0a61a1a90f519c753ccefbcac0 /dos
parentfc9c70d47083adcb3c2fae440c44a1dc4895a8fd (diff)
downloadsyslinux-devel-d1169ea4907b9b4a8cd73ed60d4e96160d05212f.tar.gz
syslinux-devel-d1169ea4907b9b4a8cd73ed60d4e96160d05212f.tar.xz
syslinux-devel-d1169ea4907b9b4a8cd73ed60d4e96160d05212f.zip
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.c2
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) {