diff options
author | Miaoqian Lin <[email protected]> | 2022-06-01 12:59:26 +0400 |
---|---|---|
committer | Damien Le Moal <[email protected]> | 2022-06-06 09:52:17 +0900 |
commit | 10d6bdf532902be1d8aa5900b3c03c5671612aa2 (patch) | |
tree | 409fe9e4dd1e00bea1c7db8e67fefd40d8a33579 /lib/mpi/mpi-mod.c | |
parent | bf476fe22aa1851bab4728e0c49025a6a0bea307 (diff) |
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 <[email protected]>
Reviewed-by: Sergey Shtylyov <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions