[PATCH 3.18 76/83] scsi: ufs: fix bugs related to null pointer access and array size