Skip to content
Commit 450677dc authored by Eric Dumazet's avatar Eric Dumazet Committed by Linus Torvalds
Browse files

mm/madvise: fix memory leak from process_madvise

The early return in process_madvise() will produce a memory leak.

Fix it.

Fixes: ecb8ac8b

 ("mm/madvise: introduce process_madvise() syscall: an external memory hinting API")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarMinchan Kim <minchan@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20201116155132.GA3805951@google.com
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a349e4c6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment