Date: Wed, 11 Mar 1998 07:12:32 -0500 (EST) From: Peter Dufault <dufault@hda.com> To: bde@zeta.org.au (Bruce Evans) Cc: dufault@hda.com, erich@lodgenet.com, freebsd-scsi@FreeBSD.ORG, robsch@robkaos.ruhr.de Subject: Re: Scanner support Message-ID: <199803111212.HAA25156@hda.hda.com> In-Reply-To: <199803110126.MAA16949@godzilla.zeta.org.au> from Bruce Evans at "Mar 11, 98 12:26:58 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> > See PR 5846. b_kvasize should be 0, since the buffer doesn't have > any kva. Setting it to a large value here probably works because > the value is never used except in the broken maxphys(). OK, so he can try something like (change to scsi_ioctl is good but won't fix things): Index: kern_physio.c =================================================================== RCS file: /hosts/hda/mnt2/cvs/src/sys/kern/kern_physio.c,v retrieving revision 1.23 diff -r1.23 kern_physio.c 181c181 < if (bp->b_kvasize < maxphys) --- > if (bp->b_kvasize && bp->b_kvasize < maxphys) Index: scsi_ioctl.c =================================================================== RCS file: /hosts/hda/mnt2/cvs/src/sys/scsi/scsi_ioctl.c,v retrieving revision 1.29 diff -r1.29 scsi_ioctl.c 289,290c289 < bp = malloc(sizeof (struct buf),M_TEMP,M_WAITOK); < bzero(bp,sizeof(struct buf)); --- > bp = getpbuf(); 324c323 < free(bp,M_TEMP); --- > relpbuf(bp) -- Peter Dufault (dufault@hda.com) Realtime development, Machine control, HD Associates, Inc. Safety critical systems, Agency approval To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803111212.HAA25156>