Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm/gup: Mark lock taken only after a successful retake
It's definitely incorrect to mark the lock as taken even if down_read_killable() failed. This wass overlooked when we switched from down_read() to down_read_killable() because down_read() won't fail while down_read_killable() could. Fixes: 71335f3 ("mm/gup: allow to react to fatal signals") Reported-by: [email protected] Signed-off-by: Peter Xu <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information