]> git.baikalelectronics.ru Git - kernel.git/commit
slub: fix/clean free_debug_processing return paths
authorLaura Abbott <labbott@fedoraproject.org>
Tue, 15 Mar 2016 21:55:02 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commit721456e1a9918d41bb6f37990afda6f6a87a5d32
tree430d86b2278800229737058fef66befbc8b86a13
parentc499f2b571c6c227f7023dafeeefabe4bf011d5b
slub: fix/clean free_debug_processing return paths

Since commit bae9a13f86bc ("slub: Take node lock during object free
checks") check_object has been incorrectly returning success as it
follows the out label which just returns the node.

Thanks to refactoring, the out and fail paths are now basically the
same.  Combine the two into one and just use a single label.

Credit to Mathias Krause for the original work which inspired this
series

Signed-off-by: Laura Abbott <labbott@fedoraproject.org>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <js1304@gmail.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c