git: 0b25cbc79d38 - main - Fix the size returned for NT_FPREGSET.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 04 Mar 2022 01:53:26 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=0b25cbc79d384ab2b204ff389ea7df99e06a25e6

commit 0b25cbc79d384ab2b204ff389ea7df99e06a25e6
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-03-04 01:53:06 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-03-04 01:53:06 +0000

    Fix the size returned for NT_FPREGSET.
    
    Sponsored by:   University of Cambridge, Google, Inc.
---
 sys/kern/imgact_elf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index 569c927c7a74..332bb221e746 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -2271,7 +2271,7 @@ __elfN(get_fpregset)(struct regset *rs, struct thread *td, void *buf,
 		fill_fpregs(td, fpregset);
 #endif
 	}
-	*sizep = sizeof(fpregset);
+	*sizep = sizeof(*fpregset);
 	return (true);
 }