]> 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)
commit72d74d180e7263c6aa37dca3216782463ba1ce3f
treea887ab7f7133b6bce843d3611dc63dba49f0ad8f
parentc0ce9c66e3aaf14901f109225eba5e8481546907
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