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 <dt@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2243314
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shashank Singh <shashsingh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
dinesh
2019-11-20 16:32:52 +05:30
committed by Alex Waterman
parent 4bbed24353
commit 919e1cf85b

View File

@@ -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);
}