mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[SCSI] fusion - mptctl - Event Log Fix
Use the hard coded value MPTCTL_EVENT_LOG_SIZE to fix bug where in certain cases, the ioc->eventLogSize was initialized. Signed-off-by: Eric Moore <Eric.Moore@lsil.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
86a7dcaae9
commit
5b5ef4f617
3 changed files with 4 additions and 5 deletions
|
@ -6142,7 +6142,7 @@ ProcessEventNotification(MPT_ADAPTER *ioc, EventNotificationReply_t *pEventReply
|
|||
if (ioc->events && (ioc->eventTypes & ( 1 << event))) {
|
||||
int idx;
|
||||
|
||||
idx = ioc->eventContext % ioc->eventLogSize;
|
||||
idx = ioc->eventContext % MPTCTL_EVENT_LOG_SIZE;
|
||||
|
||||
ioc->events[idx].event = event;
|
||||
ioc->events[idx].eventContext = ioc->eventContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue