aboutsummaryrefslogtreecommitdiffstats
path: root/lib/prio_heap.c
diff options
context:
space:
mode:
authorKashyap, Desai <kashyap.desai@lsi.com>2010-11-12 18:01:14 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-12-21 13:24:03 -0500
commitdd3741d30300f9cf1adc046773a4bb87252d96ac (patch)
tree948c762c9b1131ce0dd7d7eb8879d4c607908a58 /lib/prio_heap.c
parent363fa50fc35357b1361fb63b0726335de993374a (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 'lib/prio_heap.c')
0 files changed, 0 insertions, 0 deletions