summaryrefslogtreecommitdiffstats
path: root/include/linux/dma-mapping.h
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-11-20 08:12:29 -0600
committerMartin K. Petersen <martin.petersen@oracle.com>2017-11-21 23:00:44 -0500
commit727535903bea924c4f73abb202c4b3e85fff0ca4 (patch)
treef68d4b8d2400105cf78abad963b894bf7e59eff5 /include/linux/dma-mapping.h
parente4717292ddebcfe231651b5aff9fa19ca158d178 (diff)
downloadlinux-727535903bea924c4f73abb202c4b3e85fff0ca4.tar.gz
linux-727535903bea924c4f73abb202c4b3e85fff0ca4.tar.bz2
linux-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 <garsilva@embeddedor.com> Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/linux/dma-mapping.h')
0 files changed, 0 insertions, 0 deletions