1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/root/target/linux/bcm27xx/patches-5.14/0386-clk-requests-Ignore-if-the-pointer-is-null.patch
Ycarus (Yannick Chabanois) 5c593832cc Add 5.14 patches for RPI
2021-10-01 16:58:58 +02:00

27 lines
674 B
Diff

From c7553d5c858346b6762340392bd465fa7ba8a096 Mon Sep 17 00:00:00 2001
From: Maxime Ripard <maxime@cerno.tech>
Date: Wed, 21 Apr 2021 12:14:44 +0200
Subject: [PATCH 386/552] clk: requests: Ignore if the pointer is null
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
---
drivers/clk/clk.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 0898c0f8959f..5a659cd1fccf 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2517,6 +2517,9 @@ void clk_request_done(struct clk_request *req)
{
struct clk_core *core = req->clk->core;
+ if (!req)
+ return;
+
clk_prepare_lock();
list_del(&req->list);
--
2.33.0