Commit 35e01667 authored by Dan Carpenter's avatar Dan Carpenter Committed by Dan Williams

cxl/mbox: fix logical vs bitwise typo

This should be bitwise & instead of &&.

Fixes: 6179045c ("cxl/mbox: Block immediate mode in SET_PARTITION_INFO command")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YmpgkbbQ1Yxu36uO@kiliSigned-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 280302f0
......@@ -243,7 +243,7 @@ static bool cxl_payload_from_user_allowed(u16 opcode, void *payload_in)
case CXL_MBOX_OP_SET_PARTITION_INFO: {
struct cxl_mbox_set_partition_info *pi = payload_in;
if (pi->flags && CXL_SET_PARTITION_IMMEDIATE_FLAG)
if (pi->flags & CXL_SET_PARTITION_IMMEDIATE_FLAG)
return false;
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment