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:46:40 +0000 (09:46 +0100)
commit8e5f27df2a6a3457b58c9f93671b31995ee81f00
treef9a222415656e162816621b9b8dce2793577d02c
parent1c759b361b77fa566daf687b8dc3c2ab72251a6e
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