summaryrefslogtreecommitdiff
path: root/fs/openpromfs
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2017-07-11 20:05:36 +0300
committerDavid S. Miller <davem@davemloft.net>2017-07-11 20:32:11 +0300
commit9b0436c3f29483ca91d890b0072c0c02e2e535ed (patch)
treee2a43c742866d3e36b86a9c2bcc4513f426a997d /fs/openpromfs
parent3b6b34df342553a7522561e34288f5bb803aa9aa (diff)
downloadlinux-9b0436c3f29483ca91d890b0072c0c02e2e535ed.tar.xz
bnxt_en: Fix SRIOV on big-endian architecture.
The PF driver sets up a list of firmware commands from the VF driver that needs to be forwarded to the PF for approval. This list is a 256-bit bitmap. The code that sets up the bitmap falls apart on big-endian architecture. __set_bit() does not work because it operates on long types whereas the firmware interface is defined in u32 types, causing bits in the wrong 32-bit word to be set. Fix it by setting the proper bits on an array of u32. Fixes: de68f5de5651 ("bnxt_en: Fix bitmap declaration to work on 32-bit arches.") Reported-by: Shannon Nelson <shannon.nelson@oracle.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/openpromfs')
0 files changed, 0 insertions, 0 deletions