1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

Fix segfault while detecting drives due to 9x changes in CAM

PR:		ports/165938
Submitted by:	Corey Halpin <chalpin@cs.wisc.edu> (author/maintainer)

Also fixes:

PR:		ports/164464
PR:		ports/165787
Feature safe:	yes
This commit is contained in:
Chris Rees 2012-03-17 11:16:55 +00:00
parent d883589acd
commit 30047d9399
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293449
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= dvdisaster
PORTVERSION= 0.72.3
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF \
http://dvdisaster.net/downloads/

View File

@ -0,0 +1,11 @@
--- scsi-freebsd.c.orig 2012-03-14 18:59:03.409149568 +0000
+++ scsi-freebsd.c 2012-03-14 19:28:12.104788317 +0000
@@ -194,7 +194,7 @@
/* Extract sense data */
- memcpy(sense, &(ccb->csio.sense_data), sizeof(struct scsi_sense_data));
+ memcpy(sense, &(ccb->csio.sense_data), sizeof(Sense));
if((ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP)
return 0;