1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00
freebsd/sys/dev/ocs_fc
Mark Johnston a01ff11cb7 ocs: Check for copyin errors in the ioctl handler
If copyin() fails, the driver will blindly proceed with whatever had
been in the uninitialized DMA buffer.  This is not what we want.  Check
for copyin failures.

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

Reviewed by:	ram
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D43097
2023-12-25 21:04:00 -05:00
..
ocs_cam.c ocs_fc: Use xpt_path_sbuf() to copy the path to sbuf. 2023-12-18 14:22:06 +05:30
ocs_cam.h
ocs_common.h
ocs_ddump.c
ocs_ddump.h
ocs_device.c
ocs_device.h
ocs_domain.c
ocs_domain.h
ocs_drv_fc.h
ocs_els.c
ocs_els.h
ocs_fabric.c
ocs_fabric.h
ocs_fcp.h
ocs_gendump.c
ocs_gendump.h
ocs_hw_queues.c
ocs_hw_queues.h
ocs_hw.c ocs_fc: IO timeout handling and error reporting fix. 2023-12-12 10:22:58 -05:00
ocs_hw.h ocs_fc: IO timeout handling and error reporting fix. 2023-12-12 10:22:58 -05:00
ocs_io.c
ocs_io.h
ocs_ioctl.c ocs: Check for copyin errors in the ioctl handler 2023-12-25 21:04:00 -05:00
ocs_ioctl.h
ocs_list.h
ocs_mgmt.c
ocs_mgmt.h
ocs_node.c
ocs_node.h
ocs_os.c
ocs_os.h
ocs_pci.c
ocs_scsi.c ocs_fc: IO timeout handling and error reporting fix. 2023-12-12 10:22:58 -05:00
ocs_scsi.h
ocs_sm.c
ocs_sm.h
ocs_sport.c
ocs_sport.h
ocs_stats.h
ocs_unsol.c
ocs_unsol.h
ocs_utils.c
ocs_utils.h
ocs_vpd.h
ocs_xport.c ocs_fc: IO timeout handling and error reporting fix. 2023-12-12 10:22:58 -05:00
ocs_xport.h
ocs.h
sli4.c
sli4.h ocs_fc: IO timeout handling and error reporting fix. 2023-12-12 10:22:58 -05:00
version.h