You need to sign in or sign up before continuing.
提交 4891486f 编写于 作者: H Heiner Kallweit 提交者: Philipp Zabel

reset: core: fix reset_control_put

Commit "reset: make optional functions really optional" missed to
adjust one check in reset_control_put, causing a NULL pointer
access for optional resets.

Fixes: bb475230 "reset: make optional functions really optional"
Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
上级 bb475230
...@@ -392,7 +392,7 @@ EXPORT_SYMBOL_GPL(__of_reset_control_get); ...@@ -392,7 +392,7 @@ EXPORT_SYMBOL_GPL(__of_reset_control_get);
void reset_control_put(struct reset_control *rstc) void reset_control_put(struct reset_control *rstc)
{ {
if (IS_ERR(rstc)) if (IS_ERR_OR_NULL(rstc))
return; return;
mutex_lock(&reset_list_mutex); mutex_lock(&reset_list_mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册