Skip to content
Snippets Groups Projects
Commit c5685cc9 authored by Arshad Hussain's avatar Arshad Hussain Committed by Oleg Drokin
Browse files

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: default avatarArshad 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: default avatarjenkins <devops@whamcloud.com>
Tested-by: default avatarMaloo <maloo@whamcloud.com>
Reviewed-by: default avatarJames Simmons <jsimmons@infradead.org>
Reviewed-by: default avatarChris Horn <chris.horn@hpe.com>
Reviewed-by: default avatarFrank Sehr <fsehr@whamcloud.com>
Reviewed-by: default avatarOleg Drokin <green@whamcloud.com>
parent f76d6ecc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment