]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netconsole: move netpoll_parse_ip_addr() earlier for reuse
authorBreno Leitao <leitao@debian.org>
Mon, 11 Aug 2025 18:13:25 +0000 (11:13 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Aug 2025 00:32:42 +0000 (17:32 -0700)
commitfa38524ca5a783aa0cfc8ffa5730c5012edfccf4
tree5e1f5186feb7f3451fc9844216781a729c111a7a
parent75f26257667588260d067fa022ebd6ac39b4a9c1
netconsole: move netpoll_parse_ip_addr() earlier for reuse

Move netpoll_parse_ip_addr() earlier in the file to be reused in
other functions, such as local_ip_store(). This avoids duplicate
address parsing logic and centralizes validation for both IPv4
and IPv6 string input.

No functional changes intended.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250811-netconsole_ref-v4-1-9c510d8713a2@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netconsole.c