]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/rdmavt: Correct qp_priv_alloc() return value test
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 22 Jun 2016 20:29:33 +0000 (13:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 15:42:08 +0000 (08:42 -0700)
commit68439a76dd421a4aa0663ab19291a91c3f876840
treea24204050f3a79c7d73f6f30c219f1a3f0ebe010
parent03ea1bce809b176d509d6f5036dcbcbfcb17bf6c
IB/rdmavt: Correct qp_priv_alloc() return value test

commit c755f4afa66ad3ed98870bd3254f37c47fb2c800 upstream.

The current drivers return errors from this calldown
wrapped in an ERR_PTR().

The rdmavt code incorrectly tests for NULL.

The code is fixed to use IS_ERR() and change ret according
to the driver return value.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/sw/rdmavt/qp.c
include/rdma/rdma_vt.h