Skip to contentSkip to conversation

cnic: Fixed double assignment to ictx->xstorm_st_context.common.flags

PATCH New Javed Hasan 1 participant 1 message May 17, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cnic: Fixed double assignment to ictx->xstorm_st_context.common.flags

drivers/net/ethernet/broadcom/cnic.c +1 -1
index f7f10cfb3476..d2e8421cc629 100644
@@ -1760,7 +1760,7 @@ static int cnic_setup_bnx2x_ctx(struct cnic_dev *dev, struct kwqe *wqes[],
 	}
 	ictx->xstorm_st_context.common.flags =
 		1 << XSTORM_COMMON_CONTEXT_SECTION_PHYSQ_INITIALIZED_SHIFT;
-	ictx->xstorm_st_context.common.flags =
+	ictx->xstorm_st_context.common.flags |=
 		port << XSTORM_COMMON_CONTEXT_SECTION_PBF_PORT_SHIFT;
 
 	ictx->tstorm_st_context.iscsi.hdr_bytes_2_fetch = ISCSI_HEADER_SIZE;
Signature · 1 line
2.18.2