]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r336379:
authorhselasky <hselasky@FreeBSD.org>
Thu, 2 Aug 2018 08:21:55 +0000 (08:21 +0000)
committerhselasky <hselasky@FreeBSD.org>
Thu, 2 Aug 2018 08:21:55 +0000 (08:21 +0000)
commit4705d0479c330bf00f5e16e8b0e154371eebead4
tree10f6b78ece5c93a480a84c5a0bf340a789a0cebe
parentec8d85fa2d48ef399b1dbe16699e1633204c873f
MFC r336379:
Check for a cm_id->device in all user calls that need it in ibcore.

This was done by auditing all callers of ucma_get_ctx and switching the
ones that unconditionally touch ->device to ucma_get_ctx_dev. This covers
a little less than  half of the call sites.

The 11 remaining call sites to ucma_get_ctx() were manually audited.

Linux commit:
4b658d1bbc16605330694bb3ef2570c465ef383d
8b77586bd8fe600d97f922c79f7222c46f37c118

Sponsored by: Mellanox Technologies
sys/ofed/drivers/infiniband/core/ib_ucma.c