mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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: bb475230b8
"reset: make optional functions really optional"
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
parent
bb475230b8
commit
4891486fb2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue