]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mmu_notifiers: use the right return code for WARN_ON
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 6 Nov 2019 05:16:37 +0000 (21:16 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Nov 2019 16:47:50 +0000 (08:47 -0800)
commit96a9c1b6613648aa7251468483b0eca7f3f27595
tree61062f8a0173a88d5da475b9d8d7ec4fd0163d65
parent8b82aca564da71131356a1edf913e6b97fe9f253
mm/mmu_notifiers: use the right return code for WARN_ON

The return code from the op callback is actually in _ret, while the
WARN_ON was checking ret which causes it to misfire.

Link: http://lkml.kernel.org/r/20191025175502.GA31127@ziepe.ca
Fixes: fafe3afb7a8e ("mm/mmu_notifiers: check if mmu notifier callbacks are allowed to fail")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmu_notifier.c