perftest/write_bw_postlist
PATCH 1/1 perftest/write_bw_postlist
Hello,
in write_bw_postlist.c, my_dest (and possibly rem_dest) must be initialized, else the remote node may not be able to parse the connection string and the test will fail to start. The others test are doing that initialization.
Signed-off-by Frank Zago <[email protected]>
write_bw_postlist.c +2 -2
@@ -738,8 +743,8 @@ int main(int argc, char *argv[])if (!ctx)return 1 ; - my_dest =malloc (sizeof (struct pingpong_dest )*user_param.num_of_qps); - rem_dest =malloc (sizeof (struct pingpong_dest )*user_param.num_of_qps); + my_dest =calloc (user_param.num_of_qps,sizeof (struct pingpong_dest )); + rem_dest =calloc (user_param.num_of_qps,sizeof (struct pingpong_dest ));if (!my_dest || !rem_dest) {perror ("malloc my_dest or rem_dest" );return 1 ;
Applied . Thanks again Frank
Quoted 6 lines · frank zago
Hello,
in
write_bw_postlist.c,my_dest(and possiblyrem_dest) must be initialized, else the remote node may not be able to parse the connection string and the test will fail to start. The others test are doing that initialization.Signed-off-by Frank Zago <[email protected]>
--
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