mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-09-27 19:50:52 -04:00
Overhaul CVE patches
This commit is contained in:
parent
ce59045163
commit
92a0187dfb
907 changed files with 301921 additions and 3819 deletions
|
@ -1,31 +0,0 @@
|
|||
From 60a2362f769cf549dc466134efe71c8bf9fbaaba Mon Sep 17 00:00:00 2001
|
||||
From: Seung-Woo Kim <sw0312.kim@samsung.com>
|
||||
Date: Thu, 4 Dec 2014 19:17:17 +0900
|
||||
Subject: regulator: core: Fix regualtor_ena_gpio_free not to access pin after
|
||||
freeing
|
||||
|
||||
After freeing pin from regulator_ena_gpio_free, loop can access
|
||||
the pin. So this patch fixes not to access pin after freeing.
|
||||
|
||||
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
||||
Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
---
|
||||
drivers/regulator/core.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
|
||||
index df2af3a..47a455c 100644
|
||||
--- a/drivers/regulator/core.c
|
||||
+++ b/drivers/regulator/core.c
|
||||
@@ -1713,6 +1713,8 @@ static void regulator_ena_gpio_free(struct regulator_dev *rdev)
|
||||
gpiod_put(pin->gpiod);
|
||||
list_del(&pin->list);
|
||||
kfree(pin);
|
||||
+ rdev->ena_pin = NULL;
|
||||
+ return;
|
||||
} else {
|
||||
pin->request_count--;
|
||||
}
|
||||
--
|
||||
cgit v1.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue