Commit b65cfd7b authored by Ye Guojin's avatar Ye Guojin Committed by Todd Kjos
Browse files

FROMGIT: scsi: ufs: ufs-mediatek: Add put_device() after of_find_device_by_node()

This was found by coccicheck:

./drivers/scsi/ufs/ufs-mediatek.c, 211, 1-7, ERROR missing put_device;
call of_find_device_by_node on line 1185, but without a corresponding
object release within this function.

Link: https://lore.kernel.org/r/20211110105133.150171-1-ye.guojin@zte.com.cn


Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Reviewed-by: default avatarPeter Wang <peter.wang@mediatek.com>
Signed-off-by: default avatarYe Guojin <ye.guojin@zte.com.cn>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Bug: 204438323
(cherry picked from commit cc03facb git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git

 for-next)
Change-Id: I0aa3e8be7f7bc84d5c9b4dc3fb1e5586bc7e5ddf
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent 4f4bf31d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment