Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 2026 18:24:27 +0000
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a5b10ce45d67 - stable/15 - sound: Propagate error value from dsp_make_dev()
Message-ID:  <6a7b68db.1ebcc.720505b2@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by christos:

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

commit a5b10ce45d678be3c771c686cc3949db2faf55aa
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-07-27 14:31:10 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-08-11 18:24:03 +0000

    sound: Propagate error value from dsp_make_dev()
    
    It is better to propagate it to pcm_register(), and later to the device
    drivers, than to simply ignore it and return ENXIO.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    
    (cherry picked from commit a46c92aad16bf6c9d6c3967c8af3e8b3bdb59cda)
---
 sys/dev/sound/pcm/dsp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index e030b06d22dc..72dbbf055066 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -148,7 +148,7 @@ dsp_make_dev(device_t dev)
 	if (err != 0) {
 		device_printf(dev, "failed to create dsp%d: error %d",
 		    unit, err);
-		return (ENXIO);
+		return (err);
 	}
 
 	return (0);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a7b68db.1ebcc.720505b2>