From 919e1cf85bd0409610dcaa9a072781346d74c83a Mon Sep 17 00:00:00 2001 From: dinesh Date: Wed, 20 Nov 2019 16:32:52 +0530 Subject: [PATCH] nvgpu: nvgpu: Fix for signal handler The function BUG() will be called for any error conditions in qnx. As we need to stop the gpu from further processing, signal need to be raised. Change-Id: I99034a4ac772f898f9eec7b324512fb1419fcce6 Signed-off-by: dinesh Reviewed-on: https://git-master.nvidia.com/r/2243314 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: svc-mobile-cert Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shashank Singh GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/posix/bug.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/nvgpu/os/posix/bug.c b/drivers/gpu/nvgpu/os/posix/bug.c index 1908e57e6..015177a7e 100644 --- a/drivers/gpu/nvgpu/os/posix/bug.c +++ b/drivers/gpu/nvgpu/os/posix/bug.c @@ -94,9 +94,7 @@ void nvgpu_posix_bug(const char *fmt, ...) */ nvgpu_err(NULL, "BUG detected!"); dump_stack(); -#ifdef __NVGPU_UNIT_TEST__ (void) raise(SIGSEGV); -#endif pthread_exit(NULL); }