opnsense-src/sys/dev/mrsas
John Baldwin 9f0c0e6eed mrsas: Don't leak a stack pointer value in the softc.
mrsas_issue_blocked_cmd stores a pointer to an on-stack variable
in its softc so that the driver can call wakeup() on the correct
pointer.  Once the loop around tsleep() has finished however, the
pointer is no longer needed and any further use would be invalid.
Clear sc->chan to NULL after the loop.

Reported by:	GCC -Wdangling-pointer
Differential Revision:	https://reviews.freebsd.org/D37628
2022-12-21 10:45:26 -08:00
..
mrsas.c mrsas: Don't leak a stack pointer value in the softc. 2022-12-21 10:45:26 -08:00
mrsas.h [POWERPC64BE] mrsas: add big-endian support 2021-02-03 22:06:21 -03:00
mrsas_cam.c mrsas: remove additional MPT command allocation for R1 FP command 2022-04-05 08:38:14 -06:00
mrsas_fp.c Fix "set but not used" in the mrsas driver. Remove dead code. 2022-02-26 12:21:11 -07:00
mrsas_ioctl.c Use uintptr_t instead of unsigned long for pointers. 2020-12-16 00:13:32 +00:00
mrsas_ioctl.h mrsas: clean up empty lines in .c and .h files 2020-09-01 22:06:23 +00:00
mrsas_linux.c Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00