diff options
-rw-r--r-- | kernel/kexec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/kexec.c b/kernel/kexec.c index c8a4370e2a34..cf3797b76786 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c | |||
@@ -1503,7 +1503,8 @@ int kernel_kexec(void) | |||
1503 | } | 1503 | } |
1504 | 1504 | ||
1505 | Unlock: | 1505 | Unlock: |
1506 | xchg(&kexec_lock, 0); | 1506 | if (!xchg(&kexec_lock, 0)) |
1507 | BUG(); | ||
1507 | 1508 | ||
1508 | return error; | 1509 | return error; |
1509 | } | 1510 | } |