Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:47692 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754558AbcKUQb6 (ORCPT ); Mon, 21 Nov 2016 11:31:58 -0500 Subject: Patch "IB/hfi1: Remove incorrect IS_ERR check" has been added to the 4.8-stable tree To: dennis.dalessandro@intel.com, dan.carpenter@oracle.com, dean.luick@intel.com, dledford@redhat.com, gregkh@linuxfoundation.org Cc: , From: Date: Mon, 21 Nov 2016 17:29:31 +0100 Message-ID: <1479745771135150@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled IB/hfi1: Remove incorrect IS_ERR check to the 4.8-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: ib-hfi1-remove-incorrect-is_err-check.patch and it can be found in the queue-4.8 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From 2b16056f845207967a32497f41cf92b57849f934 Mon Sep 17 00:00:00 2001 From: Dennis Dalessandro Date: Tue, 25 Oct 2016 13:12:46 -0700 Subject: IB/hfi1: Remove incorrect IS_ERR check From: Dennis Dalessandro 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 Reviewed-by: Dean Luick Signed-off-by: Dennis Dalessandro Signed-off-by: Doug Ledford Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/hw/hfi1/user_sdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/infiniband/hw/hfi1/user_sdma.c +++ b/drivers/infiniband/hw/hfi1/user_sdma.c @@ -1152,7 +1152,7 @@ static int pin_vector_pages(struct user_ rb_node = hfi1_mmu_rb_extract(pq->handler, (unsigned long)iovec->iov.iov_base, iovec->iov.iov_len); - if (rb_node && !IS_ERR(rb_node)) + if (rb_node) node = container_of(rb_node, struct sdma_mmu_node, rb); else rb_node = NULL; Patches currently in stable-queue which might be from dennis.dalessandro@intel.com are queue-4.8/ib-hfi1-remove-incorrect-is_err-check.patch queue-4.8/ib-hfi1-fix-rnr_timer-addition.patch queue-4.8/ib-rdmavt-rdmavt-can-handle-non-aligned-page-maps.patch