/* Release received buffer. This function will just send release control message. */
static int send_release(struct backend_data *dev_data, const uint8_t *buffer, enum msg_type msg_type, uint8_t ept_addr)
/* Release received buffer. This function will just send release control message. */
static int send_release(struct backend_data *dev_data, const uint8_t *buffer, enum msg_type msg_type, uint8_t ept_addr)
{
	const struct icbmsg_config *conf = dev_data->conf;
	int rx_block_index;
	rx_block_index = buffer_to_index_validate(&conf->rx, buffer, NULL);
	if (rx_block_index < 0) {
		return rx_block_index;
	}
	return send_control_message(dev_data, msg_type, ept_addr, rx_block_index);
}