diff --git a/test/libdrm_mock.c b/test/libdrm_mock.c index cb3dba9..f156c71 100644 --- a/test/libdrm_mock.c +++ b/test/libdrm_mock.c @@ -390,7 +390,7 @@ int drmModeAtomicAddProperty(drmModeAtomicReq *req, uint32_t obj_id, req->props[req->cursor].prop_id = prop_id; req->props[req->cursor].value = value; req->cursor++; - return 0; + return req->cursor; } int drmModeAtomicGetCursor(drmModeAtomicReq *req)