]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
9p/trans_xen: replace simple_strto* with kstrtouint
authorYufan Chen <ericterminal@gmail.com>
Tue, 24 Mar 2026 15:30:23 +0000 (23:30 +0800)
committerDominique Martinet <asmadeus@codewreck.org>
Thu, 16 Apr 2026 02:57:01 +0000 (02:57 +0000)
commit8fc518e489c1386fd0cf7f4256d055960ed6a2e4
treeafa36929dd131ae00631e3797e646604f87461d7
parent72cb9ee4f6d80962df17c9763b14e62e28fd85a2
9p/trans_xen: replace simple_strto* with kstrtouint

In xen_9pfs_front_init(), parse the backend version list as comma-separated
tokens with kstrtouint(), keep strict token validation, and explicitly
require protocol version 1 to be present.

This replaces the deprecated simple_strtoul(), improves error reporting
consistency, and avoids partially parsed values in control paths.

Signed-off-by: Yufan Chen <ericterminal@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Message-ID: <20260324153023.86853-3-ericterminal@gmail.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
net/9p/trans_xen.c