Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev/scsipi



Module Name:    src
Committed By:   nathanw
Date:           Thu Jun  1 15:53:09 UTC 2006

Modified Files:
        src/sys/dev/scsipi: sd.c

Log Message:
Change return type of sdgetdisklabel() from void to int; return an error
if readdisklabel() returned an error.

sdopen(): Return an error if sdgetdisklabel() returns an error. This prevents
a crash in spec_open() (and possibly elsewhere) if a sd device is detached in
the middle of sdopen().


To generate a diff of this commit:
cvs rdiff -r1.247 -r1.248 src/sys/dev/scsipi/sd.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