Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev



Module Name:    src
Committed By:   kre
Date:           Wed Dec 24 16:58:16 UTC 2025

Modified Files:
        src/sys/dev: ccd.c

Log Message:
Fix kern.ccd.units sysctl processing

The kern.ccd.units sysctl is intended to return a list (array) of
configured ccd unit numbers - it didn't, instead it returned the
unit number of the first configured ccd, and N-1 0's (where N
is the number of configured ccd devices).   If it happened that
ccd0 was the first configured, then N 0's would be returned.

This (very simple) fix corrects that.

This bug has been present (unnoticed apparently) since the sysctl
was added, April, 2013 - so I guess that not very many people to
        ccdconfig -g
(not naming the devices) when they have more than one configured ccd.
I suspect that's the only current way to experience it easily.

XXX pullup -9 -10 -11


To generate a diff of this commit:
cvs rdiff -u -r1.193 -r1.194 src/sys/dev/ccd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index