[337] in linux-scsi channel archive
Tiny patch for ncr driver
daemon@ATHENA.MIT.EDU (Stephen R. van den Berg)
Tue Jul 11 19:41:34 1995
From: srb@cuci.nl (Stephen R. van den Berg)
Date: Mon, 10 Jul 1995 22:59:07 +0200
To: ncr53c810@colorado.edu
Cc: linux-scsi@vger.rutgers.edu
Tiny patch that I had still lying around (yes, I patched this after I'd seen
it happen two times):
diff -p -C 2 -r -d --horizon-lines=3 linux.ref/drivers/scsi/53c7,8xx.c linux/drivers/scsi/53c7,8xx.c
*** linux.ref/drivers/scsi/53c7,8xx.c Thu May 4 02:08:34 1995
--- linux/drivers/scsi/53c7,8xx.c Thu May 4 02:09:50 1995
*************** int NCR53c7xx_abort (Scsi_Cmnd *cmd) {
*** 3778,3783 ****
curr = (struct NCR53c7x0_cmd *) cmd->host_scribble;
! curr->next = hostdata->free;
! hostdata->free = curr;
if (((cmd->result & 0xff00) == 0xff00) ||
--- 3778,3785 ----
curr = (struct NCR53c7x0_cmd *) cmd->host_scribble;
! if (curr) {
! curr->next = hostdata->free;
! hostdata->free = curr;
! }
if (((cmd->result & 0xff00) == 0xff00) ||
--
Sincerely, srb@cuci.nl
Stephen R. van den Berg (AKA BuGless).
E Pluribus Unix.