summaryrefslogtreecommitdiff
path: root/staging/cli_bpdu.c
AgeCommit message (Expand)AuthorFilesLines
2013-05-13staging: add mausezahn staging directoryDaniel Borkmann1-0/+750
ect>mode:
authorArnd Bergmann <arnd@arndb.de>2016-09-19 13:57:26 +0200
committerDoug Ledford <dledford@redhat.com>2016-12-12 16:31:45 -0500
commita0fa72683e78979ef1123d679b1c40ae28bd9096 (patch)
tree5222fc413b272f38aa61ca3c7811c04f05444087
parente37a79e5d4cac3831fac3d4afbf2461f56b4b7bd (diff)
IB/rxe: avoid putting a large struct rxe_qp on stack
A race condition fix added an rxe_qp structure to the stack in order to be able to perform rollback in rxe_requester(), but the structure is large enough to trigger the warning for possible stack overflow: drivers/infiniband/sw/rxe/rxe_req.c: In function 'rxe_requester': drivers/infiniband/sw/rxe/rxe_req.c:757:1: error: the frame size of 2064 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] This changes the rollback function to only save the psn inside the qp, which is the only field we access in the rollback_qp anyway. Fixes: 3050b9985024 ("IB/rxe: Fix race condition between requester and completer") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat