diff options
author | Mike Marciniszyn <mike.marciniszyn@intel.com> | 2016-06-22 23:29:33 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-23 17:16:15 +0300 |
commit | c755f4afa66ad3ed98870bd3254f37c47fb2c800 (patch) | |
tree | a395969f595da0bcc305d2b4400a7462402832bc /include/linux | |
parent | 8ae84f7c56044ee17ef6b700cb34d11ad9428a2e (diff) | |
download | linux-c755f4afa66ad3ed98870bd3254f37c47fb2c800.tar.xz |
IB/rdmavt: Correct qp_priv_alloc() return value test
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.
Cc: Stable <stable@vger.kernel.org> # 4.6+
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions