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

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@kili


Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 280302f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}