opnsense-src/sys/dev/mpi3mr
Mark Johnston 8adca661c2 mpi3mr: Check for copyin errors in mpi3mr_map_data_buffer_dma()
A failed copyin will cause the driver to use the contents of
uninitialized buffers instead, which is unlikely to be the behaviour
that we want.  Check for errors.

This is in preparation for annotating copyin() and related functions
with __result_use_check.

Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D43098

(cherry picked from commit 6bfb7306ef92aaccffae42ed00ce6d7201b76966)
2024-01-01 19:29:45 -05:00
..
mpi
mpi3mr.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpi3mr.h sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpi3mr_app.c mpi3mr: Check for copyin errors in mpi3mr_map_data_buffer_dma() 2024-01-01 19:29:45 -05:00
mpi3mr_app.h
mpi3mr_cam.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpi3mr_cam.h
mpi3mr_pci.c mpi3mr: Move creation of watchdog to interupt config hook 2023-10-19 15:21:12 -06:00