[PATCH 0/4] char: misc: improve test and dynamic allocation
From: Thadeu Lima de Souza Cascardo
Date: Thu Jan 23 2025 - 07:33:11 EST
These apply on top of commit 6d04d2b554b1 ("misc: misc_minor_alloc to use
ida for all dynamic/misc dynamic minors") and commit 37df9043329b
("misc:minor basic kunit tests"), both at char-misc-next.
The tests are written in order to detect regressions around the bug fixed
by commit 6d04d2b554b1 ("misc: misc_minor_alloc to use ida for all
dynamic/misc dynamic minors") and the followup fixing commits "char: misc:
restrict the dynamic range to exclude reserved minors" and "char: misc:
deallocate static minor in error path".
Thadeu Lima de Souza Cascardo (4):
char: misc: improve testing Kconfig description
char: misc: add test cases
char: misc: restrict the dynamic range to exclude reserved minors
char: misc: deallocate static minor in error path
drivers/char/misc.c | 6 +-
drivers/misc/misc_minor_kunit.c | 515 +++++++++++++++++++++++++++++++-
include/linux/miscdevice.h | 1 +
lib/Kconfig.debug | 15 +-
4 files changed, 529 insertions(+), 8 deletions(-)
--
2.34.1