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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:07:51 +0000 (08:07 +0100)
commitb7f73ada92a396b7ca987695af3243944c757295
tree8186e109f78d0ab49e523dd2ab49ce139fc62909
parent7b13692156167666ba9bc5e30e41fe0eecd86bd0
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/multicast.c