summaryrefslogtreecommitdiff
path: root/include/linux/devpts_fs.h
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2020-02-28 15:41:42 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-18 07:17:55 +0100
commitf5ace0987a69088049c53312ec894258ae8fcaa5 (patch)
tree66c679d3f6ce4261177c1d99ba4356903fa8fd2f /include/linux/devpts_fs.h
parentd2df67d7411e6097fff428a00b17a6a2f81cce59 (diff)
pinctrl: core: Remove extra kref_get which blocks hogs being freed
commit aafd56fc79041bf36f97712d4b35208cbe07db90 upstream. kref_init starts with the reference count at 1, which will be balanced by the pinctrl_put in pinctrl_unregister. The additional kref_get in pinctrl_claim_hogs will increase this count to 2 and cause the hogs to not get freed when pinctrl_unregister is called. Fixes: 6118714275f0 ("pinctrl: core: Fix pinctrl_register_and_init() with pinctrl_enable()") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20200228154142.13860-1-ckeepax@opensource.cirrus.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/devpts_fs.h')
0 files changed, 0 insertions, 0 deletions