powermac_nvram: Actually return EBUSY on error from open.

This commit is contained in:
John Baldwin 2022-04-12 14:58:58 -07:00
parent 773cfd2bf8
commit 124b6786e4

View file

@ -218,7 +218,7 @@ powermac_nvram_open(struct cdev *dev, int flags, int fmt, struct thread *td)
sc->sc_rpos = sc->sc_wpos = 0;
sx_xunlock(&sc->sc_lock);
return 0;
return (err);
}
static int