cxl/mbox: fix logical vs bitwise typo
This should be bitwise & instead of &&.
Fixes: 6179045ccc
("cxl/mbox: Block immediate mode in SET_PARTITION_INFO command")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YmpgkbbQ1Yxu36uO@kili
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
280302f0e8
commit
35e01667c8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue