freebsd-src/sys/dev/mpi3mr
Mark Johnston 6bfb7306ef 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
2023-12-25 21:04:00 -05:00
..
mpi
mpi3mr.c mpi3mr: Minor tweak to task queue pausing 2023-11-28 18:52:28 -07:00
mpi3mr.h mpi3mr: Assume dma_hiaddr is BUS_SPACE_MAXADDR 2023-11-28 18:52:28 -07:00
mpi3mr_app.c mpi3mr: Check for copyin errors in mpi3mr_map_data_buffer_dma() 2023-12-25 21:04:00 -05:00
mpi3mr_app.h
mpi3mr_cam.c mpi3mr: Replace can't happen DataLength == 0 with an assert 2023-11-28 18:52:28 -07:00
mpi3mr_cam.h
mpi3mr_pci.c mpi3mr: Use template for main busdma tag. 2023-11-28 18:52:23 -07:00