https://github.com/torvalds/linux
Revision 288dde9f23b6726c1e8147bf635721372bf77b16 authored by Moshe Lazer on 10 July 2013, 11:31:03 UTC, committed by Roland Dreier on 11 July 2013, 23:45:08 UTC
Sparse reported an endianness bug in the assignment to hca_cap.uar_page_sz.

Fix the declaration of this field to be __be16 (which is what is in
the firmware spec), renaming the field to log_uar_pg_size to conform
to the spec, which fixes the endianness bug reported by sparse.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Moshe Lazer <moshel@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
1 parent 582c016
History
Tip revision: 288dde9f23b6726c1e8147bf635721372bf77b16 authored by Moshe Lazer on 10 July 2013, 11:31:03 UTC
mlx5_core: Adjust hca_cap.uar_page_sz to conform to Connect-IB spec
Tip revision: 288dde9
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.1 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 249.8 KB
Makefile -rw-r--r-- 47.3 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top