]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitc92ba3c5d97de59c016d1a23ebab17293a792621
treea887ab7f7133b6bce843d3611dc63dba49f0ad8f
parent70d4687d60184915b6f40920041caa1df4f4d033
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