Skip to content

Commit

Permalink
pinctrl: fix mutex deadlock in get_pinctrl_dev_from_of_node()
Browse files Browse the repository at this point in the history
This obvious bug was introduced by d755910b7 ("pinctrl: move subsystem
mutex to pinctrl_dev struct").

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Daniel Mack authored and Linus Walleij committed Apr 30, 2013
1 parent 37e4901 commit d463f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct pinctrl_dev *get_pinctrl_dev_from_of_node(struct device_node *np)
return pctldev;
}

mutex_lock(&pinctrldev_list_mutex);
mutex_unlock(&pinctrldev_list_mutex);

return NULL;
}
Expand Down

0 comments on commit d463f82

Please sign in to comment.