diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-06-01 12:59:26 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-14 16:59:35 +0200 |
commit | 8d8ad067b90f231b8fdb14acee673ca4012f6045 (patch) | |
tree | c2dcd2255749a0a7c428becacb197f16b9464a60 /net/unix | |
parent | 998d35a2aff4b81a1c784f3aa45cd3afff6814c1 (diff) | |
download | linux-stable-8d8ad067b90f231b8fdb14acee673ca4012f6045.tar.gz linux-stable-8d8ad067b90f231b8fdb14acee673ca4012f6045.tar.bz2 linux-stable-8d8ad067b90f231b8fdb14acee673ca4012f6045.zip |
ata: pata_octeon_cf: Fix refcount leak in octeon_cf_probe
[ Upstream commit 10d6bdf532902be1d8aa5900b3c03c5671612aa2 ]
of_find_device_by_node() takes reference, we should use put_device()
to release it when not need anymore.
Add missing put_device() to avoid refcount leak.
Fixes: 43f01da0f279 ("MIPS/OCTEON/ata: Convert pata_octeon_cf.c to use device tree.")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions