scsi: ufs: fix a missing check of devm_reset_control_get
authorKangjie Lu <kjlu@umn.edu>
Fri, 15 Mar 2019 07:11:56 +0000 (02:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:45:19 +0000 (06:45 -0700)
commit3fd015670af7d0978698acb4828f96c262f09525
tree83952f6610291923e77d741338d32e0809df0168
parentc9f5ab267fcd7f7db0aea987efd6441ca5f8c5bc
scsi: ufs: fix a missing check of devm_reset_control_get

[ Upstream commit 63a06181d7ce169d09843645c50fea1901bc9f0a ]

devm_reset_control_get could fail, so the fix checks its return value and
passes the error code upstream in case it fails.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Acked-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/ufs/ufs-hisi.c