1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +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
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
mpt.h