]> git.baikalelectronics.ru Git - kernel.git/commit
NTB: invalid buf pointer in multi-MW setups
authorJon Mason <jdmason@kudzu.us>
Mon, 5 Oct 2015 02:54:22 +0000 (22:54 -0400)
committerJon Mason <jdmason@kudzu.us>
Sun, 8 Nov 2015 21:11:21 +0000 (16:11 -0500)
commit9567d5bb205a548b472a5d6c24a97325c92a3ece
treea887ab7f7133b6bce843d3611dc63dba49f0ad8f
parent5c000ad6c8e81f73b72a5984ae2382cfadc76f2a
NTB: invalid buf pointer in multi-MW setups

Order of operations issue with the QP Num and MW count, which would
result in the receive buffer pointer being invalid if there are more
than 1 MW.  Corrected with parenthesis to enforce the proper order of
operations.

Reported-by: John I. Kading <John.Kading@gd-ms.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c