Skip to content

Commit

Permalink
scsi: ufs: ufs-mediatek: Add missing of_node_put() in ufs_mtk_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zou Wei authored and Martin K. Petersen committed Jun 19, 2021
1 parent 7cca85d commit d8b34a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/ufs/ufs-mediatek.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,7 @@ static int ufs_mtk_probe(struct platform_device *pdev)
if (err)
dev_info(dev, "probe failed %d\n", err);

of_node_put(reset_node);
return err;
}

Expand Down

0 comments on commit d8b34a3

Please sign in to comment.