diff options
| author | Wen Yang <[email protected]> | 2019-04-01 01:37:49 +0000 |
|---|---|---|
| committer | Viresh Kumar <[email protected]> | 2019-04-08 10:05:24 +0000 |
| commit | ddb64c5db3cc8fb9c1242214d5798b2c2865681c (patch) | |
| tree | ff3b356002646ef9a40e77c4c43117c3d717f8ab /lib/timerqueue.c | |
| parent | cpufreq: ap806: fix possible object reference leak (diff) | |
| download | kernel-ddb64c5db3cc8fb9c1242214d5798b2c2865681c.tar.gz kernel-ddb64c5db3cc8fb9c1242214d5798b2c2865681c.zip | |
cpufreq: imx6q: fix possible object reference leak
The call to of_node_get returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.
Detected by coccinelle with the following warnings:
./drivers/cpufreq/imx6q-cpufreq.c:391:4-10: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 348, but without a corresponding object release within this function.
./drivers/cpufreq/imx6q-cpufreq.c:395:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 348, but without a corresponding object release within this function.
Signed-off-by: Wen Yang <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Viresh Kumar <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
