]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: netconsole: Unify Function Return Paths
authorBreno Leitao <leitao@debian.org>
Thu, 8 Aug 2024 12:25:10 +0000 (05:25 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 13 Aug 2024 08:58:58 +0000 (10:58 +0200)
commitf2ab4c1a9288774b1f9c102f0cb1b478965169bb
tree318111255d830ba26a5f012b75245ff8a3b911af
parent5c4a39e8a608a0f0afa2710f469432e5bfce4562
net: netconsole: Unify Function Return Paths

The return flow in netconsole's dynamic functions is currently
inconsistent. This patch aims to streamline and standardize the process
by ensuring that the mutex is unlocked before returning the ret value.

Additionally, this update includes a minor functional change where
certain strnlen() operations are performed with the
dynamic_netconsole_mutex locked. This adjustment is not anticipated to
cause any issues, however, it is crucial to document this change for
clarity.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/netconsole.c