Calls to DIOCSYNCSLICEINFO were being made with the assumption that
commit3b061ad135f5b5894482b55a8035400f77ec360c
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 23 May 2008 19:46:37 +0000 (23 19:46 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 23 May 2008 19:46:37 +0000 (23 19:46 +0000)
treea23b629c9fb443c0e2ac16a767fce2139c586ab8
parent2ef741b7248a1a8f0577d16dc7d46cc070d90da5
Calls to DIOCSYNCSLICEINFO were being made with the assumption that
CD_FLAG_OPEN indicated an already-open device.  With recent changes this
flag is set prior to the check and the calls were being made without
any slice information, causing a panic.  For now follow what FreeBSD did
and just remove the calls.

Remove redundant setting of CD_FLAG_OPEN.

Reported-by: VOROSKOI Andras <sinknull@crater.dragonflybsd.org>,
     Michael Neumann <mneumann@ntecs.de>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1016>
sys/bus/cam/scsi/scsi_cd.c