scsi: ufs: fix bugs related to null pointer access and array size
authorYaniv Gardi <ygardi@codeaurora.org>
Tue, 18 Oct 2016 00:09:24 +0000 (17:09 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:58 +0000 (17:29 -0500)
commite3ce73d69aff44421d7899b235fec5ac2c306ff4
tree7c59d906beef9776eea61845588c4b545453027e
parent8d9c1f86a303de8fb631fb6b76260cb1fa8883a1
scsi: ufs: fix bugs related to null pointer access and array size

In this change there are a few fixes of possible NULL pointer access and
possible access to index that exceeds array boundaries.

Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs.h
drivers/scsi/ufs/ufshcd.c