net: fix decompression block-aligned allocation

This commit is contained in:
Thomas Schoebel-Theuer 2020-06-22 08:58:43 +02:00 committed by Thomas Schoebel-Theuer
parent f9c1c6f536
commit a8b91e2d8a

View File

@ -1387,6 +1387,10 @@ int mars_recv_mref(struct mars_socket *msock, struct mref_object *mref, struct m
goto done;
}
/* Ensure that ref_data is block-aligned */
if (!mref->ref_data)
mref->ref_data = brick_block_alloc(0, mref->ref_len);
status = -EBADMSG;
decompr_buf =
mars_decompress(tmp_buf, cmd->cmd_compr_len,