summaryrefslogtreecommitdiffstats
path: root/drivers/cxl
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-04-28 11:38:25 +0200
committerDan Williams <dan.j.williams@intel.com>2022-04-28 19:18:31 +0200
commit35e01667c84b1e16060020c3a13099447e61c822 (patch)
tree0031c8e80eaf836dcffdd20ebc759ff8175d7035 /drivers/cxl
parentcxl/mbox: Replace NULL check with IS_ERR() after vmemdup_user() (diff)
downloadlinux-35e01667c84b1e16060020c3a13099447e61c822.tar.xz
linux-35e01667c84b1e16060020c3a13099447e61c822.zip
cxl/mbox: fix logical vs bitwise typo
This should be bitwise & instead of &&. Fixes: 6179045ccc0c ("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>
Diffstat (limited to 'drivers/cxl')
-rw-r--r--drivers/cxl/core/mbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c
index 731cb43b570e..54f434733b56 100644
--- a/drivers/cxl/core/mbox.c
+++ b/drivers/cxl/core/mbox.c
@@ -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;
}