|
@@ -1478,7 +1478,7 @@ ssize_t ib_uverbs_create_cq(struct ib_uverbs_file *file,
|
|
|
if (copy_from_user(&cmd, buf, sizeof(cmd)))
|
|
|
return -EFAULT;
|
|
|
|
|
|
- INIT_UDATA(&ucore, buf, cmd.response, sizeof(cmd), sizeof(resp));
|
|
|
+ INIT_UDATA(&ucore, buf, (unsigned long)cmd.response, sizeof(cmd), sizeof(resp));
|
|
|
|
|
|
INIT_UDATA(&uhw, buf + sizeof(cmd),
|
|
|
(unsigned long)cmd.response + sizeof(resp),
|