mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-09-29 23:18:25 -04:00
Update Linux CVE patches
This commit is contained in:
parent
12b63c12b7
commit
3989a1b20b
958 changed files with 21074 additions and 397 deletions
31
Patches/Linux_CVEs/CVE-2015-8942/ANY/0.patch
Normal file
31
Patches/Linux_CVEs/CVE-2015-8942/ANY/0.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
From 9ec380c06bbd79493828fcc3c876d8a53fd3369f Mon Sep 17 00:00:00 2001
|
||||
From: Iliya Varadzhakov <ivarad@codeaurora.org>
|
||||
Date: Fri, 13 Mar 2015 07:33:18 -0700
|
||||
Subject: msm: cpp: Update iommu handling
|
||||
|
||||
CPP has to check for stream state before operate iommu
|
||||
contexts.
|
||||
|
||||
Change-Id: I69e6266e1ff2d1cd93e7191f2c43c887154abae0
|
||||
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
|
||||
---
|
||||
drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c b/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c
|
||||
index 784e882..96b1641 100644
|
||||
--- a/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c
|
||||
+++ b/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c
|
||||
@@ -2662,7 +2662,8 @@ STREAM_BUFF_END:
|
||||
break;
|
||||
}
|
||||
case VIDIOC_MSM_CPP_IOMMU_DETACH: {
|
||||
- if (cpp_dev->iommu_state == CPP_IOMMU_STATE_ATTACHED) {
|
||||
+ if ((cpp_dev->iommu_state == CPP_IOMMU_STATE_ATTACHED) &&
|
||||
+ (cpp_dev->stream_cnt == 0)) {
|
||||
iommu_detach_device(cpp_dev->domain,
|
||||
cpp_dev->iommu_ctx);
|
||||
cpp_dev->iommu_state = CPP_IOMMU_STATE_DETACHED;
|
||||
--
|
||||
cgit v1.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue