IB/multicast: Check ib_find_pkey() return value
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 21 Nov 2016 18:22:17 +0000 (10:22 -0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2017 22:46:50 +0000 (00:46 +0200)
commit029555a52a2bcc709ed6ad6b1c8b208f53011f9f
treecc63e45fec8609316fce60cb34c8e2d3ee0b22a4
parent67ae25b4d158d01576b5e545643c8ad4ff84c0fd
IB/multicast: Check ib_find_pkey() return value

commit d3a2418ee36a59bc02e9d454723f3175dcf4bfd9 upstream.

This patch avoids that Coverity complains about not checking the
ib_find_pkey() return value.

Fixes: commit 547af76521b3 ("IB/multicast: Report errors on multicast groups if P_key changes")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/infiniband/core/multicast.c