|
@@ -2074,8 +2074,8 @@ int ib_uverbs_ex_modify_qp(struct ib_uverbs_file *file,
|
|
return -EOPNOTSUPP;
|
|
return -EOPNOTSUPP;
|
|
|
|
|
|
if (ucore->inlen > sizeof(cmd)) {
|
|
if (ucore->inlen > sizeof(cmd)) {
|
|
- if (ib_is_udata_cleared(ucore, sizeof(cmd),
|
|
|
|
- ucore->inlen - sizeof(cmd)))
|
|
|
|
|
|
+ if (!ib_is_udata_cleared(ucore, sizeof(cmd),
|
|
|
|
+ ucore->inlen - sizeof(cmd)))
|
|
return -EOPNOTSUPP;
|
|
return -EOPNOTSUPP;
|
|
}
|
|
}
|
|
|
|
|