Subject: CVS commit: [netbsd-4] src/sys/dev/scsipi
To: None <source-changes@NetBSD.org>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: source-changes
Date: 11/25/2007 09:34:39
Module Name:	src
Committed By:	xtraeme
Date:		Sun Nov 25 09:34:39 UTC 2007

Modified Files:
	src/sys/dev/scsipi [netbsd-4]: st.c

Log Message:
Pull up following revision(s) (requested by bouyer in ticket #1002):
	sys/dev/scsipi/st.c: revision 1.199 (patch)
	sys/dev/scsipi/st.c: revision 1.200 (patch)
	sys/dev/scsipi/st.c: revision 1.201 (patch)
Properly set b_resid in an error case.
Clamp b_resid to b_bcount in case the info field is larger. Fix a KASSERT
in physio() when a media error occurs on my SDLT320 drive (maybe this drive
is bogus for not setting the highter bits to 0 in the INFO field in this
case).
When checking for invalid b_resid valyes, also check negative ones.
Should fix kern/36690.
Move check for b_resid value to the right place. Should definitively fix
kern/36690.


To generate a diff of this commit:
cvs rdiff -r1.194 -r1.194.2.1 src/sys/dev/scsipi/st.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.