diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-06-01 11:59:26 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-06-06 03:52:17 +0300 |
commit | 10d6bdf532902be1d8aa5900b3c03c5671612aa2 (patch) | |
tree | 409fe9e4dd1e00bea1c7db8e67fefd40d8a33579 /drivers/ata/libata-core.c | |
parent | bf476fe22aa1851bab4728e0c49025a6a0bea307 (diff) | |
download | linux-10d6bdf532902be1d8aa5900b3c03c5671612aa2.tar.xz |
ata: pata_octeon_cf: Fix refcount leak in octeon_cf_probe
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>
Diffstat (limited to 'drivers/ata/libata-core.c')
0 files changed, 0 insertions, 0 deletions