From 06c838e81c10e2b7b0d4776bbc77589189b252fa Mon Sep 17 00:00:00 2001 From: snchen Date: Fri, 26 Jul 2024 11:30:11 +0800 Subject: [PATCH] vi5: camera: move allow_signal to dequeue move allow_signal(SIGINT) to tegra_channel_kthread_capture_dequeue to allow user space to break capture thread while capture timeout override to infinite(-1). bug 4737219 Change-Id: Ic166c5e48d67e15e1bf26bb3abc9d2f9070f7cf4 Signed-off-by: snchen Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3182589 Reviewed-by: Anubhav Rai Reviewed-by: Narendra Kondapalli Reviewed-by: svcacv GVS: buildbot_gerritrpt --- drivers/media/platform/tegra/camera/vi/vi5_fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/tegra/camera/vi/vi5_fops.c b/drivers/media/platform/tegra/camera/vi/vi5_fops.c index b64a6769..c6093a75 100644 --- a/drivers/media/platform/tegra/camera/vi/vi5_fops.c +++ b/drivers/media/platform/tegra/camera/vi/vi5_fops.c @@ -688,7 +688,6 @@ static int tegra_channel_kthread_capture_enqueue(void *data) struct tegra_channel_buffer *buf; unsigned long flags; set_freezable(); - allow_signal(SIGINT); while (1) { try_to_freeze(); @@ -732,6 +731,7 @@ static int tegra_channel_kthread_capture_dequeue(void *data) struct tegra_channel_buffer *buf; set_freezable(); + allow_signal(SIGINT); while (1) { try_to_freeze();