]> Git Repo - linux.git/commit
vm: fix incorrect unlock error path in madvise_free_huge_pmd
authorLinus Torvalds <[email protected]>
Mon, 18 Jan 2016 02:33:15 +0000 (18:33 -0800)
committerLinus Torvalds <[email protected]>
Mon, 18 Jan 2016 02:33:15 +0000 (18:33 -0800)
commit25eedabe019851bc513abd601ed514df524cb482
tree924e8cfcb1516b29468696b7384a1a9195806bbb
parentc671e1e30259da587d7a0162895200601979ee65
vm: fix incorrect unlock error path in madvise_free_huge_pmd

Commit b8d3c4c3009d ("mm/huge_memory.c: don't split THP page when
MADV_FREE syscall is called") introduced this new function, but got the
error handling for when pmd_trans_huge_lock() fails wrong.  In the
failure case, the lock has not been taken, and we should not unlock on
the way out.

Cc: Minchan Kim <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/huge_memory.c
This page took 0.053085 seconds and 4 git commands to generate.