⬢ DragonFlyBSD Kernel Audit
DF-4043 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/disk/amd/amd.c
+++ b/sys/dev/disk/amd/amd.c
@@ -843,7 +843,12 @@
 static void
 amdsettags(struct amd_softc *amd, u_int target, int tagenb)
 {
-	panic("Implement me!");
+	if (target > AMD_TARGET_MAX)
+		return;
+	if (tagenb)
+		amd->tinfo[target].disc_tag |= AMD_CUR_TAGENB;
+	else
+		amd->tinfo[target].disc_tag &= ~AMD_CUR_TAGENB;
 }