[PATCH for-4.9.y 07/10] scsi: ufs: fix bugs related to null pointer access and array size