diff options
author | Varad Gautam <varadgautam@google.com> | 2024-01-08 16:19:43 +0000 |
---|---|---|
committer | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-01-09 21:35:44 +0000 |
commit | e4305c16fdb1742ac088b8d96c3ae22896cf7f96 (patch) | |
tree | becb271deab921d5c7b30d3da8e54163bf542a71 | |
parent | a23d1f3d39be430a0efd3950d4788cd165413b1c (diff) | |
download | gpu-e4305c16fdb1742ac088b8d96c3ae22896cf7f96.tar.gz |
mali_kbase: pixel: WARN_ON pixel_gpu_uevent_send() from interrupt ctx
kobject_uevent_env() shouldn't be called from an interrutpt ctx. Log a
warning and return early if pixel_gpu_uevent_send() is accidentally
called from an interrupt.
Bug: 312206733
Change-Id: I66dc5f14c4bf736ffa423aed701906d9da5e00ec
Signed-off-by: Varad Gautam <varadgautam@google.com>
-rw-r--r-- | mali_kbase/platform/pixel/pixel_gpu_uevent.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mali_kbase/platform/pixel/pixel_gpu_uevent.c b/mali_kbase/platform/pixel/pixel_gpu_uevent.c index 7b8dcd2..9b82704 100644 --- a/mali_kbase/platform/pixel/pixel_gpu_uevent.c +++ b/mali_kbase/platform/pixel/pixel_gpu_uevent.c @@ -67,6 +67,9 @@ void pixel_gpu_uevent_send(struct kbase_device *kbdev, const struct gpu_uevent * unsigned long flags, current_ts = jiffies; bool suppress_uevent = false; + if (WARN_ON(in_interrupt())) + return; + if (!gpu_uevent_check_valid(evt)) { dev_err(kbdev->dev, "unrecognized uevent type=%u info=%u", evt->type, evt->info); return; |