scsi: ufs-mediatek: Add missing of_node_put() in ufs_mtk_probe()
Subsystems (2)
PATCH 1/1 scsi: 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.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Zou Wei <[email protected]>
--- drivers/scsi/ufs/ufs-mediatek.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/ufs/ufs-mediatek.c +1 -0
@@ -1120,6 +1120,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; }
Signature · 1 line
2.6.2
Hi Zou,
Quoted 14 lines · Zou Wei
The function is missing a
of_node_puton node, fix this by adding the call before returning.Reported-by Hulk Robot <[email protected]>Signed-off-by Zou Wei <[email protected]>--- drivers/scsi/ufs/ufs-mediatek.c | 1 + 1 file changed, 1 insertion(+)drivers/scsi/ufs/ufs-mediatek.c +0
-0
drivers/scsi/ufs/ufs-mediatek.c static int ufs_mtk_probe(struct platform_device *pdev) · line 1126
Quoted 7 lines
drivers/scsi/ufs/ufs-mediatek.c +1
-0@@ -1120,6 +1120,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; }
Thanks for this fix.
Reviewed-by Stanley Chu <[email protected]>
Martin K. Petersen
AppliedZou,
Quoted 2 lines
The function is missing a
of_node_puton node, fix this by adding the call before returning.
Applied to 5.14/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering