Subject: CVS commit: src/sys/dev/scsipi
To: None <source-changes@NetBSD.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 06/01/2006 15:53:09
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.