Respect a return code of fwmem_open().
This commit is contained in:
parent
15d25d32ea
commit
3a927c871a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user