freebsd-skq/sys/dev/isp
brooks 0254454772 Fix ISP_FC_LIP and ISP_RESCAN on big-endian 64-bit systems.
For _IO() ioctls, addr is a pointer to uap->data which is a caddr_t.
When the caddr_t stores an int, dereferencing addr as an (int *) results
in truncation on little-endian 64-bit systems and corruption (owing to
extracting top bits) on big-endian 64-bit systems. In practice the
value of chan was probably always zero on systems of the latter type as
all such FreeBSD platforms use a register-based calling convention.

Reviewed by:	mav
Obtained from:	CheriBSD
MFC after:	1 week
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D14673
2018-03-13 19:56:10 +00:00
..
DriverManual.txt Update several more URLs 2017-10-29 08:17:03 +00:00
Hardware.txt
isp_freebsd.c Fix ISP_FC_LIP and ISP_RESCAN on big-endian 64-bit systems. 2018-03-13 19:56:10 +00:00
isp_freebsd.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
isp_ioctl.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
isp_library.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
isp_library.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
isp_pci.c Add support for Enhanced Gen 5 (16Gb) and Gen 6 (32Gb) QLogic FC HBAs. 2018-02-28 16:24:32 +00:00
isp_sbus.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
isp_stds.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
isp_target.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
isp_target.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
isp.c Add support for Enhanced Gen 5 (16Gb) and Gen 6 (32Gb) QLogic FC HBAs. 2018-02-28 16:24:32 +00:00
ispmbox.h Add support for Enhanced Gen 5 (16Gb) and Gen 6 (32Gb) QLogic FC HBAs. 2018-02-28 16:24:32 +00:00
ispreg.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ispvar.h Add support for Enhanced Gen 5 (16Gb) and Gen 6 (32Gb) QLogic FC HBAs. 2018-02-28 16:24:32 +00:00