freebsd-dev/sys/dev/asmc
Ulrich Spörlein 623534d683 Fix undefined behavior when using asmc_fan_getstring()
It was returning a pointer to stack-allocated memory, so make the
allocation at the caller instead.

Found by:	clang static analyzer
Coverity:	CID 1245774
Reviewed by:	ed, rpaulo
Review URL:	https://reviews.freebsd.org/D4740
2016-01-05 10:25:22 +00:00
..
asmc.c Fix undefined behavior when using asmc_fan_getstring() 2016-01-05 10:25:22 +00:00
asmcvar.h Improvements to asmc(4): 2014-09-22 16:20:38 +00:00