freebsd-src/usr.sbin/mpsutil
Alan Somers 7d154c4dc6 mprutil: "fix user reply buffer (64)..." warnings
Depending on the card's firmware version, it may return different length
responses for MPI2_FUNCTION_IOC_FACTS.  But the first part of the
response contains the length of the rest, so query it first to get the
length and then use that to size the buffer for the full response.

Also, correctly zero-initialize MPI2_IOC_FACTS_REQUEST.  It only worked
by luck before.

PR:		264848
Reported by:	Julien Cigar <julien@perdition.city>
MFC after:	1 week
Sponsored by:	Axcient
Reviewed by:	scottl, imp
Differential Revision: https://reviews.freebsd.org/D38739
2023-09-21 08:38:24 -06:00
..
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mps_cmd.c mprutil: "fix user reply buffer (64)..." warnings 2023-09-21 08:38:24 -06:00
mps_debug.c Remove $FreeBSD$: alt two-line .c pattern 2023-08-16 11:54:48 -06:00
mps_flash.c Remove $FreeBSD$: alt two-line .c pattern 2023-08-16 11:54:48 -06:00
mps_set.c Remove $FreeBSD$: alt two-line .c pattern 2023-08-16 11:54:48 -06:00
mps_show.c Remove $FreeBSD$: alt two-line .c pattern 2023-08-16 11:54:48 -06:00
mps_slot.c Remove $FreeBSD$: alt two-line .c pattern 2023-08-16 11:54:48 -06:00
mpsutil.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
mpsutil.c Remove $FreeBSD$: alt two-line .c pattern 2023-08-16 11:54:48 -06:00
mpsutil.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00