Linux CXL
 help / color / mirror / Atom feed
* [PATCH] cxl/mbox: fix logical vs bitwise typo
@ 2022-04-28  9:38 Dan Carpenter
  2022-04-28 17:01 ` Dan Williams
  2022-04-29  2:37 ` Alison Schofield
  0 siblings, 2 replies; 4+ messages in thread
From: Dan Carpenter @ 2022-04-28  9:38 UTC (permalink / raw)
  To: Alison Schofield
  Cc: Vishal Verma, Ira Weiny, Ben Widawsky, Dan Williams,
	Jonathan Cameron, Davidlohr Bueso, linux-cxl, kernel-janitors

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>
---
 drivers/cxl/core/mbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-06 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-28  9:38 [PATCH] cxl/mbox: fix logical vs bitwise typo Dan Carpenter
2022-04-28 17:01 ` Dan Williams
2022-04-29  2:37 ` Alison Schofield
2022-05-06 13:50   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox