summaryrefslogtreecommitdiff
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2022-06-01 11:59:26 +0300
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-06-06 03:52:17 +0300
commit10d6bdf532902be1d8aa5900b3c03c5671612aa2 (patch)
tree409fe9e4dd1e00bea1c7db8e67fefd40d8a33579 /drivers/ata/libata-core.c
parentbf476fe22aa1851bab4728e0c49025a6a0bea307 (diff)
downloadlinux-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