]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Don't pass garbage to rd_check_is_filtered()
authorPhil Sutter <phil@nwl.cc>
Thu, 18 Oct 2018 12:35:50 +0000 (14:35 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 22 Oct 2018 17:05:43 +0000 (10:05 -0700)
commitcdefe1d8e472f3a69d5f54d90092b9b50961bf91
tree3289d74244a62edbc66a2519a6fa5a92bd7b4af4
parente5da392ff8e3979b86cad04b238ffbbc8076e005
rdma: Don't pass garbage to rd_check_is_filtered()

Variables 'src_port' and 'dst_port' are initialized only if attributes
RDMA_NLDEV_ATTR_RES_SRC_ADDR or RDMA_NLDEV_ATTR_RES_DST_ADDR are
present. Make sure to pass them over to rd_check_is_filtered() only if
that is the case.

Fixes: 9a362cc71a455 ("rdma: Add CM_ID resource tracking information")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/res.c