⬢ DragonFlyBSD Kernel Audit
DF-3924 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/raid/hptmv/entry.c
+++ b/sys/dev/raid/hptmv/entry.c
@@ -2515,11 +2515,11 @@
 
 	if(logical) {
 		if (ccb->ccb_h.flags & CAM_DATA_PHYS)
-			panic("physical address unsupported");
+			return FALSE;
 
 		if (ccb->ccb_h.flags & CAM_SCATTER_VALID) {
 			if (ccb->ccb_h.flags & CAM_SG_LIST_PHYS)
-				panic("physical address unsupported");
+				return FALSE;
 
 			for (idx = 0; idx < ccb->csio.sglist_cnt; idx++) {
 				pSg[idx].dSgAddress = (ULONG_PTR)(UCHAR *)sgList[idx].ds_addr;