Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 1999 18:52:08 -0600 (CST)
From:      Oscar Bonilla <obonilla@fisicc-ufm.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/10630: patche for sane port
Message-ID:  <199903170052.SAA23510@voyager.fisicc-ufm.edu>

next in thread | raw e-mail | index | archive | help

>Number:         10630
>Category:       ports
>Synopsis:       sane uses a buffer that is too big for the cam interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 16 16:50:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Oscar Bonilla
>Release:        FreeBSD 3.1-STABLE i386
>Organization:
Universidad Francisco Marroquin
>Environment:
>Description:

	      the sane port uses MAXPHYS for its MAX_DATA when it should
	      use (DFLTPHYS - PAGE_SIZE). this breaks sane on some 
	      systems.

>How-To-Repeat:
>Fix:
	
	add this patch to the patches subdir of the port

*** sanei/sanei_scsi.c.orig     Tue Mar 16 18:10:54 1999
--- sanei/sanei_scsi.c  Tue Mar 16 18:11:17 1999
***************
*** 186,192 ****
  #endif

  #if USE == FREEBSD_CAM_INTERFACE
! # define MAX_DATA     MAXPHYS
  #endif

  #ifndef MAX_DATA
--- 186,192 ----
  #endif

  #if USE == FREEBSD_CAM_INTERFACE
! # define MAX_DATA     (DFLTPHYS - PAGE_SIZE)
  #endif

  #ifndef MAX_DATA

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903170052.SAA23510>