Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-4] src/sys/dev/scsipi
Module Name: src
Committed By: tron
Date: Mon Sep 11 21:17:30 UTC 2006
Modified Files:
src/sys/dev/scsipi [netbsd-4]: cd.c
Log Message:
Pull up following revision(s) (requested by reinoud in ticket #147):
sys/dev/scsipi/cd.c: revision 1.249
The size of struct scsipi_read_discinfo_data is not even due to the data[1]
pseudo array in the structure. The scsi command issued used
sizeof(scsipi_read_discinfo_data) but included thus the last byte that
wasn't going to be inspected anyway. Using the constant
READ_DISCINFO_BIGSIZE fixes the bug.
Even though SCSI adapters *should* accept odd lengths, the Sun U10
(sparc64's) crashes in bus_space_read_multi_stream_2(). That explains the
crash.
NOTE: somewhere in NetBSD/sparc64's atapibus support there is the
assumption on the even size; this needs to be fixed! (Hi Sparc64 portmaster
-) )
To generate a diff of this commit:
cvs rdiff -r1.242.6.2 -r1.242.6.3 src/sys/dev/scsipi/cd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index