]> git.baikalelectronics.ru Git - kernel.git/commit
mm/z3fold.c: fix lock/unlock imbalance in z3fold_page_isolate
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 30 Aug 2019 23:04:43 +0000 (16:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 31 Aug 2019 01:00:50 +0000 (18:00 -0700)
commitb241bb297805c9165555fc8185e7f9bf6528f56e
treeec68f31eede2441acc795a3a80e9666561fad740
parent4c93eab02d8667e2a8eab9e126d50227f9d4ffeb
mm/z3fold.c: fix lock/unlock imbalance in z3fold_page_isolate

Fix lock/unlock imbalance by unlocking *zhdr* before return.

Addresses Coverity ID 1452811 ("Missing unlock")

Link: http://lkml.kernel.org/r/20190826030634.GA4379@embeddedor
Fixes: 5f2df63a6f7a ("mm/z3fold.c: fix race between migration and destruction")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Henry Burns <henrywolfeburns@gmail.com>
Cc: Vitaly Wool <vitalywool@gmail.com>
Cc: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/z3fold.c