infiniband:core:Add needed error path in cm_init_av_by_path
A message that is not in the archive (sent off-list or not yet received): [email protected]
Haggai Eran
Reviewed-byQuoted 11 lines · Nicholas Krause
To: [email protected]
Cc: [email protected]; [email protected]; Haggai Eran; jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org; Matan Barak; [email protected]; [email protected]; Doron Tsur; Erez Shitrit; [email protected]; [email protected]; [email protected]
Subject: [PATCH] infiniband:core:Add needed error path incm_init_av_by_pathThis adds a needed error path in the function,
cm_init_av_by_pathafter the call toib_init_ah_from_pathin order to avoid incorrectly accessing the path pointer of structure typeib_sa_path_recif this function call fails to complete its intended work successfully by returning a error code.Signed-off-by Nicholas Krause <[email protected]>
The subject doesn't seem to match the convention but apart from that,
I wonder if this should go to stable. If I understand correctly, this will fail only when the SGID isn't found in the GID table, but such connections would fail later on when creating a QP, right?
Haggai--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Haggai Eran
Quoted 10 lines · Nicholas Krause
To: [email protected]
Cc: [email protected]; [email protected]; Haggai Eran; jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org; Matan Barak; [email protected]; [email protected]; Doron Tsur; Erez Shitrit; [email protected]; [email protected]; [email protected]
Subject: [PATCH] infiniband:core:Add needed error path incm_init_av_by_pathThis adds a needed error path in the function,
cm_init_av_by_pathafter the call toib_init_ah_from_pathin order to avoid incorrectly accessing the path pointer of structure typeib_sa_path_recif this function call fails to complete its intended work successfully by returning a error code.
Quoted 7 lines
Quoted 1 line
Signed-off-by Nicholas Krause <[email protected]>The subject doesn't seem to match the convention but apart from that,
I wonder if this should go to stable. If I understand correctly, this will fail only when the SGID isn't found in the GID table, but such connections would fail later on when creating a QP, right?
Me too think this need a reconsider, to me the current logical don't really care the missing gid in cache when initializing AV, I'm not sure if it's necessary to fail all the following path for such cache missing...
Regards,
Michael Wang
Quoted 3 lines
Haggai
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html