
if (ret) {
    cleanup_msginfo(msginfo);
    return ret;
}

// Define cleanup_msginfo function elsewhere
static void cleanup_msginfo(struct vmbus_channel_msginfo *msginfo)
{
    if (msginfo) {
        // Perform necessary cleanup
        kfree(msginfo);
    }
}
