• Breno Leitao's avatar
    net: netconsole: Unify Function Return Paths · f2ab4c1a
    Breno Leitao authored
    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: default avatarBreno Leitao <leitao@debian.org>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    f2ab4c1a
netconsole.c 33.3 KB