rsocket.c: In rsetsockopt, for RDMA_ROUTE option, use malloc rather than calloc
PATCH 1/1 rsocket.c: In rsetsockopt, for RDMA_ROUTE option, use malloc rather than calloc
No need to clear allocated memory as immediately followed by memcpy which covers the allocated memory.
---
src/rsocket.c +1 -1
@@ -3473,7 +3473,7 @@ int rsetsockopt(int socket, int level, int optname, ret =0 ;break ;case RDMA_ROUTE : -if ((rs->optval =calloc (optlen,1 ))) { +if ((rs->optval =malloc (optlen))) {memcpy (rs->optval, optval, optlen); rs->optlen = optlen; ret =0 ;
--
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
thanks - applied
--
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