]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/sys.c
libata-scsi: Fix ZBC management out command translation
[mirror_ubuntu-bionic-kernel.git] / kernel / sys.c
index cf8ba545c7d3ba6feda038455d75d1931194f3e9..89d5be418157fa7a18760b57c11a56a7437c8b81 100644 (file)
@@ -2246,7 +2246,8 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
        case PR_SET_THP_DISABLE:
                if (arg3 || arg4 || arg5)
                        return -EINVAL;
-               down_write(&me->mm->mmap_sem);
+               if (down_write_killable(&me->mm->mmap_sem))
+                       return -EINTR;
                if (arg2)
                        me->mm->def_flags |= VM_NOHUGEPAGE;
                else