summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorPei Xiao <xiaopei01@kylinos.cn>2026-09-22 11:38:01 +0800
committerNiklas Cassel <cassel@kernel.org>2026-09-22 16:54:35 +0200
commit193f5b84a95c02456f51fe5067750ecf73d213d5 (patch)
treeee6d95038038b98f7393e9f3a8ea495859d8d3c5 /tools/lib/python
parent02178d4b697cb58cebefd9dccc56d614b1795e5f (diff)
ata: pata_parport: fix parport attach idr_alloc for
idr_alloc() expects an inclusive start and an exclusive end, so passing port->number as both arguments produces an empty range. Because idr_alloc() only falls back to INT_MAX when end <= 0, the allocation succeeds solely for parport0 and returns -ENOSPC for every other port, which pata_parport_attach() silently ignores. As a result only parport0 gets probed and any higher-numbered parports are never attached. Use port->number + 1 as the end so the range [port->number, port->number + 1) contains exactly the desired ID. Fixes: 246a1c4c6b7f ("ata: pata_parport: add driver (PARIDE replacement)") Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn> Link: https://lore.kernel.org/r/cee1a15d98cd0d55f41fd65ca9d222b68a74e7d3.1790047457.git.xiaopei01@kylinos.cn Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions