]> git.itanic.dy.fi Git - linux-stable/commit
IB/hfi1: Remove incorrect IS_ERR check
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Tue, 25 Oct 2016 20:12:46 +0000 (13:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Nov 2016 08:56:58 +0000 (09:56 +0100)
commit160149299f71c36770be6e627f035bd2377ac3ab
treeb6d1ac94b95311d75610cbc4e815eaf561254f39
parent46e47543175b6784b02f7b587ef83b44fd2c8f7d
IB/hfi1: Remove incorrect IS_ERR check

commit 2b16056f845207967a32497f41cf92b57849f934 upstream.

Remove IS_ERR check from caching code as the function being called does
not actually return error pointers.

Fixes: f19bd643dbde: "IB/hfi1: Prevent NULL pointer deferences in caching code"
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Dean Luick <dean.luick@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/hw/hfi1/user_sdma.c