mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 17:55:05 +03:00
kthread_create call may return ERR_PTR(-ENOMEM) or ERR_PTR(-EINTR) in case of memory allocation failure or if the newly created thread receives a fatal signal. Handle the conditions by returning and not attempting to wake up the thread. Bug 200688338 Change-Id: Ibde3a847202476f52fca38d145091c540ace19c4 Signed-off-by: Niranjan Dighe <ndighe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2633986 (cherry picked from commit 4d382d925befd445cddfc10c556d7c06b980b920) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2729780 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Nitin Pai <npai@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Uday Gupta <udayg@nvidia.com>