DragonFlyBSD Kernel Audit
DF-1698 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/raid/mps/mps_sas_lsi.c b/sys/dev/raid/mps/mps_sas_lsi.c
--- a/sys/dev/raid/mps/mps_sas_lsi.c
+++ b/sys/dev/raid/mps/mps_sas_lsi.c
@@ -478,7 +478,7 @@
 				targ = mpssas_find_target_by_handle(sassc, 0,
 						event_data->PhysDiskDevHandle);
 				if (targ) {
-					targ->flags |= ~MPS_TARGET_FLAGS_RAID_COMPONENT;
+					targ->flags &= ~MPS_TARGET_FLAGS_RAID_COMPONENT;
 					kprintf("%s %d: Found Target for handle 0x%x.  \n",
 						__func__, __LINE__,
 						event_data->PhysDiskDevHandle);