git: 124b6786e4de - main - powermac_nvram: Actually return EBUSY on error from open.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 21:59:12 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=124b6786e4de5be21e86b27c03510e62af166b48 commit 124b6786e4de5be21e86b27c03510e62af166b48 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-12 21:58:58 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-12 21:58:58 +0000 powermac_nvram: Actually return EBUSY on error from open. --- sys/dev/powermac_nvram/powermac_nvram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/powermac_nvram/powermac_nvram.c b/sys/dev/powermac_nvram/powermac_nvram.c index 186f80b1de10..7c6c4d2bc8a1 100644 --- a/sys/dev/powermac_nvram/powermac_nvram.c +++ b/sys/dev/powermac_nvram/powermac_nvram.c @@ -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