projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc9c70d
)
dos: fix the soft-locking loop
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 11 Nov 2009 07:50:10 +0000
(23:50 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 11 Nov 2009 07:50:10 +0000
(23:50 -0800)
Code the soft-locking loop correctly.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
dos/syslinux.c
patch
|
blob
|
history
diff --git
a/dos/syslinux.c
b/dos/syslinux.c
index
3179707
..
1cdf418
100644
(file)
--- 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) {