forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitb1c194d
nvmem: core: fix missing of_node_put() in of_nvmem_device_get()
of_parse_phandle() returns device_node with incremented ref countwhich needs to be decremented by of_node_put() when device_nodeis not used.Fixes:e2a5402 ("nvmem: Add nvmem_device based consumer apis.")Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu>Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>Link:https://lore.kernel.org/r/20200917134437.16637-5-srinivas.kandagatla@linaro.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent1eb51d6 commitb1c194d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| 838 | + | |
838 | 839 | | |
839 | 840 | | |
840 | 841 | | |
| |||
844 | 845 | | |
845 | 846 | | |
846 | 847 | | |
847 | | - | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
848 | 851 | | |
849 | 852 | | |
850 | 853 | | |
| |||
0 commit comments
Comments
(0)