freebsd-dev/sbin/nvmecontrol/modules
John Baldwin 1187e46d1b nvmecontrol wdc: Don't pass a bogus pointer to free().
wdc_get_dui_log_size allocates a buffer and then advances the
returned pointer.  Passing this advanced pointer to free() is UB,
so save the original pointer to pass to free() instead.

Reviewed by:	imp
Reported by:	GCC 12 -Wfree-nonheap-object
Differential Revision:	https://reviews.freebsd.org/D36827
2022-10-03 16:10:44 -07:00
..
intel It's useful to have this be a global function. 2018-12-06 22:59:18 +00:00
wdc nvmecontrol wdc: Don't pass a bogus pointer to free(). 2022-10-03 16:10:44 -07:00
Makefile
Makefile.inc