diff options
| author | Peter Xu <[email protected]> | 2020-04-08 01:40:10 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-04-08 02:34:31 +0000 |
| commit | c7b6a566b98524baea6a244186e665d22b633545 (patch) | |
| tree | 00b778f01a2928b56a1221a1e291b06089ff8833 /scripts/gcc-plugins/gcc-common.h | |
| parent | mm/mempolicy: Allow lookup_node() to handle fatal signal (diff) | |
| download | kernel-c7b6a566b98524baea6a244186e665d22b633545.tar.gz kernel-c7b6a566b98524baea6a244186e665d22b633545.zip | |
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: 71335f37c5e8 ("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]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions
