Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2022 22:54:50 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: eb9716f41b2f - stable/13 - powermac_nvram: Actually return EBUSY on error from open.
Message-ID:  <202205132254.24DMsoTa078314@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=eb9716f41b2fa9b9957b3f7e8b1f0486f3d8f4a8

commit eb9716f41b2fa9b9957b3f7e8b1f0486f3d8f4a8
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-12 21:58:58 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-13 20:13:33 +0000

    powermac_nvram: Actually return EBUSY on error from open.
    
    (cherry picked from commit 124b6786e4de5be21e86b27c03510e62af166b48)
---
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205132254.24DMsoTa078314>