[PATCH v2 0/2] char: misc: improve test and dynamic allocation

Thadeu Lima de Souza Cascardo posted 2 patches 11 months, 1 week ago
There is a newer version of this series
drivers/char/misc.c             |   9 +-
drivers/misc/misc_minor_kunit.c | 509 +++++++++++++++++++++++++++++++++++++++-
2 files changed, 509 insertions(+), 9 deletions(-)
[PATCH v2 0/2] char: misc: improve test and dynamic allocation
Posted by Thadeu Lima de Souza Cascardo 11 months, 1 week ago
This includes a change that prevents dynamic allocation from using a minor
number that belongs to the historically static reserved range, which is
still used by some drivers.

It also improves the test, including a lot of corner cases, specially ones
that would fail before past fixes.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
---
Thadeu Lima de Souza Cascardo (2):
      char: misc: restrict the dynamic range to exclude reserved minors
      char: misc: add test cases

 drivers/char/misc.c             |   9 +-
 drivers/misc/misc_minor_kunit.c | 509 +++++++++++++++++++++++++++++++++++++++-
 2 files changed, 509 insertions(+), 9 deletions(-)
---
base-commit: 2397d61ee45cddb8f3bd3a3a9840ef0f0b5aa843
change-id: 20250307-misc-dynrange-d54c92a5e319

Best regards,
-- 
Thadeu Lima de Souza Cascardo <cascardo@igalia.com>