diff options
| author | Gustavo A. R. Silva <[email protected]> | 2017-11-20 14:12:29 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-11-22 04:00:44 +0000 |
| commit | 727535903bea924c4f73abb202c4b3e85fff0ca4 (patch) | |
| tree | f68d4b8d2400105cf78abad963b894bf7e59eff5 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | scsi: aacraid: Prevent crash in case of free interrupt during scsi EH path (diff) | |
| download | kernel-727535903bea924c4f73abb202c4b3e85fff0ca4.tar.gz kernel-727535903bea924c4f73abb202c4b3e85fff0ca4.zip | |
scsi: ufs: ufshcd: fix potential NULL pointer dereference in ufshcd_config_vreg
_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: aa4976130934 ("ufs: Add regulator enable support")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Reviewed-by: Subhash Jadavani <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
