LU-17000 lnet: Fix dereference after NULL under ksocknal_recv_hello
This patch fixes 'conn->ksnc_proto' which was dereferenced under function ksocknal_recv_hello() even though it could be NULL. This patch also removes 'returns' in between the function and replaces it with 'goto'. Allowing exit from a single place. CoverityID: 410244 ("Dereference after null check") Test-Parameters: trivial testlist=sanity-lnet Signed-off-by:Arshad Hussain <arshad.hussain@aeoncomputing.com> Fixes: cb5f92c0 (LU-10391 ksocklnd: use ksocknal_protocol v4 for IPv6) Change-Id: I95196d481b537281ab8643f1ee6162db450bef20 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53305 Tested-by:
jenkins <devops@whamcloud.com> Tested-by:
Maloo <maloo@whamcloud.com> Reviewed-by:
James Simmons <jsimmons@infradead.org> Reviewed-by:
Chris Horn <chris.horn@hpe.com> Reviewed-by:
Frank Sehr <fsehr@whamcloud.com> Reviewed-by:
Oleg Drokin <green@whamcloud.com>
Please register or sign in to comment