mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user