2905_2disk-resume-image-fix.patch 590 B

12345678910111213141516171819202122232425
  1. diff --git a/kernel/kmod.c b/kernel/kmod.c
  2. index fb32636..d968882 100644
  3. --- a/kernel/kmod.c
  4. +++ b/kernel/kmod.c
  5. @@ -575,7 +575,8 @@
  6. call_usermodehelper_freeinfo(sub_info);
  7. return -EINVAL;
  8. }
  9. - helper_lock();
  10. + if (!(current->flags & PF_FREEZER_SKIP))
  11. + helper_lock();
  12. if (!khelper_wq || usermodehelper_disabled) {
  13. retval = -EBUSY;
  14. goto out;
  15. @@ -611,7 +612,8 @@ wait_done:
  16. out:
  17. call_usermodehelper_freeinfo(sub_info);
  18. unlock:
  19. - helper_unlock();
  20. + if (!(current->flags & PF_FREEZER_SKIP))
  21. + helper_unlock();
  22. return retval;
  23. }
  24. EXPORT_SYMBOL(call_usermodehelper_exec);