Ticket #11288: 53c8xx.patch

File 53c8xx.patch, 906 bytes (added by Lioncash, 7 years ago)
  • src/add-ons/kernel/busses/scsi/53c8xx/53c8xx.c

    From 7fdd75ba9c15933d78bdfc866394c2580153b0f5 Mon Sep 17 00:00:00 2001
    From: Lioncash <mathew1800@gmail.com>
    Date: Fri, 26 Sep 2014 15:59:40 -0400
    Subject: [PATCH] 53c8xx: Fix array bounds for a setparam call
    
    _syncmsg is only 2 elements in size.
    ---
     src/add-ons/kernel/busses/scsi/53c8xx/53c8xx.c | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/add-ons/kernel/busses/scsi/53c8xx/53c8xx.c b/src/add-ons/kernel/busses/scsi/53c8xx/53c8xx.c
    index c4d62b8..82da2c8 100644
    a b scsi_int_dispatch(void *data)  
    463463
    464464            case status_syncin:
    465465                setparams(s->active,
    466                           s->active->priv->_syncmsg[1]*4,
    467                           s->active->priv->_syncmsg[2],
     466                          s->active->priv->_syncmsg[0]*4,
     467                          s->active->priv->_syncmsg[1],
    468468                          s->active->wide);
    469469                break;
    470470