Files
Gustavo A. R. Silva 6c27a40c9e scsi: ufs: ufshcd: fix potential NULL pointer dereference in ufshcd_config_vreg
[ Upstream commit 727535903b ]

_vreg_ is being dereferenced before it is null checked, hence there is a
potential null pointer dereference.

Fix this by moving the pointer dereference after _vreg_ has been null
checked.

This issue was detected with the help of Coccinelle.

Fixes: aa49761309 ("ufs: Add regulator enable support")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-03 17:39:15 +01:00
..
2017-09-07 12:12:43 -07:00
2017-12-25 14:26:25 +01:00
2018-01-02 20:31:05 +01:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
…
…
…
…
…
…
…
…
…
2017-08-25 17:21:11 -04:00
…
…
2017-08-24 22:29:06 -04:00
…
…
2017-09-05 08:18:42 -04:00
2017-08-25 17:21:10 -04:00
…
…
…
2017-08-08 11:49:51 -04:00
…
…
…
2017-08-25 17:21:11 -04:00
…
…
…
…
…
2017-09-07 12:12:43 -07:00
…
2017-09-07 12:12:43 -07:00
…
2017-08-08 11:49:51 -04:00
2017-04-26 18:32:29 -04:00
…
…