OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Kenneth R Westerback (krwcvs.openbsd.org)
Date: Thu Jul 02 2009 - 13:50:37 CDT


CVSROOT: /cvs
Module name: src
Changes by: krwcvs.openbsd.org 2009/07/02 12:50:37

Modified files:
        sys/dev/usb : umass_scsi.c

Log message:
Revert the 'optimization' I attempted in r1.21 since it turns out
that returning COMPLETE for non-SCSI_POLL commands is significant.
Fixes double free of xs and subsequent crashes caused by pulling
out USB media while i/o is active. Problem analyzed & fix discovered
by hshoexer. A more general fix may follow post-4.6.

ok miod deraadt.