c
if (!kbuffer) {
    return -EINVAL;
}
ret = create_gpadl_header(type, kbuffer, size, send_offset, &msginfo);
if (ret)
    return ret;
