diff --git a/drivers/gpu/nvgpu/include/nvgpu/posix/bug.h b/drivers/gpu/nvgpu/include/nvgpu/posix/bug.h index 272d13fe5..55d7647e0 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/posix/bug.h +++ b/drivers/gpu/nvgpu/include/nvgpu/posix/bug.h @@ -67,7 +67,7 @@ void bug_handler_cancel(void); ({ \ jmp_buf handler; \ bool bug_result = true; \ - if (!setjmp(handler)) { \ + if (setjmp(handler) != 0) { \ bug_handler_register(&handler); \ code_to_run; \ bug_handler_cancel(); \