diff options
author | Kashyap, Desai <kashyap.desai@lsi.com> | 2010-11-13 04:31:14 +0530 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 12:24:03 -0600 |
commit | dd3741d30300f9cf1adc046773a4bb87252d96ac (patch) | |
tree | 948c762c9b1131ce0dd7d7eb8879d4c607908a58 /arch/sparc/kernel/etrap_32.S | |
parent | 363fa50fc35357b1361fb63b0726335de993374a (diff) |
[SCSI] mpt2sas: Added sanity check for cb_idx and smid access.
Sometime it is seen that controller
firmware returns an invalid system message id (smid).
the oops is occurring becuase mpt_callbacks pointer is referenced to
either null or invalid virtual address. this is due to cb_idx set
incorrectly from routine _base_get_cb_idx. the cb_idx was set incorrectly
becuase there is no check to make sure smid is less than maxiumum
anticapted smid. to fix this issue, we add a check in
_base_get_cb_idx to make sure smid is not greater than
ioc->hba_queue_depth. in addition, a similar check was added to make
sure the reply address was less than the largest anticapated address.
Newer firmware has sovled this issue, however it good to have this sanity
check.
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'arch/sparc/kernel/etrap_32.S')
0 files changed, 0 insertions, 0 deletions