1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00
freebsd/sys/dev/mpt
Eitan Adler 7a22215c53 Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.

Discussed with:	-arch, rdivacky
Reviewed by:	cperciva
2013-11-30 22:17:27 +00:00
..
mpilib
mpt_cam.c Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
mpt_cam.h
mpt_debug.c After r241858, remove the remainder of FreeBSD ~4 support from mpt(4). 2012-10-22 10:42:59 +00:00
mpt_pci.c Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
mpt_raid.c Explicitly use a pair of parentheses to ensure correct evaluation 2013-05-31 17:27:44 +00:00
mpt_raid.h
mpt_reg.h
mpt_user.c Explicitly use a pair of parentheses to ensure correct evaluation 2013-05-31 17:27:44 +00:00
mpt.c After r241858, remove the remainder of FreeBSD ~4 support from mpt(4). 2012-10-22 10:42:59 +00:00
mpt.h Remove support for using Giant for locking within mpt(4). Finer grained 2012-10-22 10:53:59 +00:00