Respect a return code of fwmem_open().

This commit is contained in:
Hidetoshi Shimokawa 2003-11-07 12:30:57 +00:00
parent 15d25d32ea
commit 3a927c871a

View File

@ -170,12 +170,12 @@ fw_open (dev_t dev, int flags, int fmt, fw_proc *td)
{
int err = 0;
if (dev->si_drv1 != NULL)
return (EBUSY);
if (DEV_FWMEM(dev))
return fwmem_open(dev, flags, fmt, td);
if (dev->si_drv1 != NULL)
return (EBUSY);
#if __FreeBSD_version >= 500000
if ((dev->si_flags & SI_NAMED) == 0) {
int unit = DEV2UNIT(dev);