diff options
author | Zou Wei <zou_wei@huawei.com> | 2021-06-17 19:32:02 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-18 23:01:04 -0400 |
commit | d8b34a32a44078abef55e9fee5b3ddc7755d7c30 (patch) | |
tree | 50f3fc218891aca5d1ba1a05e16bb8421ffcde79 /drivers/scsi | |
parent | 7cca85dff2d2a67836ecb2f4bf6466bc5080e007 (diff) | |
download | linux-d8b34a32a44078abef55e9fee5b3ddc7755d7c30.tar.bz2 |
scsi: ufs: ufs-mediatek: Add missing of_node_put() in ufs_mtk_probe()
The function is missing a of_node_put() on node. Fix this by adding the
call before returning.
Link: https://lore.kernel.org/r/1623929522-4389-1-git-send-email-zou_wei@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/ufs/ufs-mediatek.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c index e883cab83bfc..32ae67e40086 100644 --- a/drivers/scsi/ufs/ufs-mediatek.c +++ b/drivers/scsi/ufs/ufs-mediatek.c @@ -1103,6 +1103,7 @@ out: if (err) dev_info(dev, "probe failed %d\n", err); + of_node_put(reset_node); return err; } |