Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2022 17:30:12 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 907f35efffb0 - main - ccp: Use devclass_find to lookup devclass in db_show_ccp.
Message-ID:  <202204211730.23LHUClL004138@gitrepo.freebsd.org>

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

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

commit 907f35efffb096593c508b8fc7a7d8988c8c2499
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-21 17:29:14 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-21 17:29:14 +0000

    ccp: Use devclass_find to lookup devclass in db_show_ccp.
    
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D35003
---
 sys/crypto/ccp/ccp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/crypto/ccp/ccp.c b/sys/crypto/ccp/ccp.c
index 4ceb028b593e..b41b86f111cb 100644
--- a/sys/crypto/ccp/ccp.c
+++ b/sys/crypto/ccp/ccp.c
@@ -766,7 +766,7 @@ DB_SHOW_COMMAND(ccp, db_show_ccp)
 
 	unit = (unsigned)addr;
 
-	sc = devclass_get_softc(ccp_devclass, unit);
+	sc = devclass_get_softc(devclass_find("ccp"), unit);
 	if (sc == NULL) {
 		db_printf("No such device ccp%u\n", unit);
 		goto usage;



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