OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:44:24 +0000 (09:44 +0100)
commit675d91966d1ab9ea0371c66b126d1427aaac0415
treeaf842174d9e5a4d6a48a11c9b6a69d9591cefbf5
parent6bea268e0c3c6807db4c67f37a883aeabebef12a
scsi: ufs: fix bugs related to null pointer access and array size

commit e3ce73d69aff44421d7899b235fec5ac2c306ff4 upstream.

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>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/ufs/ufs.h
drivers/scsi/ufs/ufshcd.c