FreeBSD Bugzilla – Attachment 253203 Details for
Bug 281156
[PATCH] mfiutil: Fix incorrect accesses of an union member in 'struct mfi_evt_detail'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed fix
proposed-fix.diff (text/plain), 2.05 KB, created by
WHR
on 2024-08-31 10:22:29 UTC
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
WHR
Created:
2024-08-31 10:22:29 UTC
Size:
2.05 KB
patch
obsolete
>diff --git a/usr.sbin/mfiutil/mfi_evt.c b/usr.sbin/mfiutil/mfi_evt.c >index 915fbb7125b..3e4f18f57e0 100644 >--- a/usr.sbin/mfiutil/mfi_evt.c >+++ b/usr.sbin/mfiutil/mfi_evt.c >@@ -397,7 +397,7 @@ mfi_decode_evt(int fd, struct mfi_evt_detail *detail, int verbose) > printf(": "); > break; > case MR_EVT_ARGS_LD_LBA: >- printf("VOL %s", volume_name(fd, &detail->args.ld_count.ld)); >+ printf("VOL %s", volume_name(fd, &detail->args.ld_lba.ld)); > if (verbose) { > printf(" lba %lld", > (long long)detail->args.ld_lba.lba); >@@ -405,7 +405,7 @@ mfi_decode_evt(int fd, struct mfi_evt_detail *detail, int verbose) > printf(": "); > break; > case MR_EVT_ARGS_LD_OWNER: >- printf("VOL %s", volume_name(fd, &detail->args.ld_count.ld)); >+ printf("VOL %s", volume_name(fd, &detail->args.ld_owner.ld)); > if (verbose) { > printf(" owner changed: prior %d, new %d", > detail->args.ld_owner.pre_owner, >@@ -414,7 +414,7 @@ mfi_decode_evt(int fd, struct mfi_evt_detail *detail, int verbose) > printf(": "); > break; > case MR_EVT_ARGS_LD_LBA_PD_LBA: >- printf("VOL %s", volume_name(fd, &detail->args.ld_count.ld)); >+ printf("VOL %s", volume_name(fd, &detail->args.ld_lba_pd_lba.ld)); > if (verbose) { > printf(" lba %lld, physical drive PD %s lba %lld", > (long long)detail->args.ld_lba_pd_lba.ld_lba, >@@ -433,7 +433,7 @@ mfi_decode_evt(int fd, struct mfi_evt_detail *detail, int verbose) > printf(": "); > break; > case MR_EVT_ARGS_LD_STATE: >- printf("VOL %s", volume_name(fd, &detail->args.ld_prog.ld)); >+ printf("VOL %s", volume_name(fd, &detail->args.ld_state.ld)); > if (verbose) { > printf(" state prior %s new %s", > mfi_ldstate(detail->args.ld_state.prev_state), >@@ -488,7 +488,7 @@ mfi_decode_evt(int fd, struct mfi_evt_detail *detail, int verbose) > case MR_EVT_ARGS_PD_STATE: > if (verbose) { > printf("PD %s state prior %s new %s: ", >- pdrive_location(&detail->args.pd_prog.pd), >+ pdrive_location(&detail->args.pd_state.pd), > mfi_pdstate(detail->args.pd_state.prev_state), > mfi_pdstate(detail->args.pd_state.new_state)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 281156
:
253203
|
253211
Working