git: eb9716f41b2f - stable/13 - powermac_nvram: Actually return EBUSY on error from open.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 13 May 2022 22:54:50 UTC
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