git: 907f35efffb0 - main - ccp: Use devclass_find to lookup devclass in db_show_ccp.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 17:30:12 UTC
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;