Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp249619imu; Wed, 2 Jan 2019 19:02:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/UYP6kW0bM/oYv8emVHWHqoW1XcxTXtxkzIlhwCpKhJSyI83kc3WP8B/fg8Tzzcpt9veeB0 X-Received: by 2002:a62:61c3:: with SMTP id v186mr47105214pfb.55.1546484521672; Wed, 02 Jan 2019 19:02:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546484521; cv=none; d=google.com; s=arc-20160816; b=nQyjIT1WHIjhErfx/RiWS0UKaBZTX7Yqmr+03Lsie+zZa6f5uAT8R+LN9Tf8CyMtSx RJ0T9X23qvo/2Aue3U85dulrfjAXaQu0COxWWTLPIK3g6puWWt1pnSuBExl1OJFaf0qU siG04OY2/Wi+twli1bcfHBe8K4kap9az4CDlE+a7o6cloNP9GvbchCCUmOeDoM1jikjJ UYkDIovxxhq78jN0luFFBJO0ZVXriMXG9afyMlq2SiB0rFEcpFNTnKm1efHp7JrNWcL2 dG8wK69p8nrp01JsyA9JIBV8h3bs15cmHcoWrYX3OnbLsGHeXZ0PWFw3lmLMcgQbyVX0 65bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QC3KDRNg78ZjCdaYRzmXMg4fN3X9D3EMFOzaXBEjkuk=; b=P7zKVOHDEJBgubP3diJYcBpcaVNtY+cB1xaaKSranblQqoPXohC+0D3KTbIVIwSlM/ z4hU0hayB5TLjntwTsP0ud4NwF5J6VW+MfXT5qRn6LysFNCWtzH2LA5HZF4rPDBpvMdO ujF2ytHQC+NpzE7oX3bWgfWeryts6XKd7ORUgxX6Bg95b8gFxlwadGpvXqla7fomCP2l 3uGpn2WkRZscVoODiPgm4pE+J8zf9h7y3CH4LqORXWnItY+CtVFRzbnAq0Ec7ektlZEL spruO3fYs05gtOukV5aLyeb8RDsCvICgquYpuklV5/Y1uzdvbCyvwYc0fjCRvtU+1knX updA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=igRa5A0O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si3197377plc.241.2019.01.02.19.01.46; Wed, 02 Jan 2019 19:02:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=igRa5A0O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730075AbfABX2M (ORCPT + 99 others); Wed, 2 Jan 2019 18:28:12 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40330 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727320AbfABX2L (ORCPT ); Wed, 2 Jan 2019 18:28:11 -0500 Received: by mail-pf1-f196.google.com with SMTP id i12so15821011pfo.7 for ; Wed, 02 Jan 2019 15:28:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QC3KDRNg78ZjCdaYRzmXMg4fN3X9D3EMFOzaXBEjkuk=; b=igRa5A0O7uVPEiWOEJan6YaUgB5SS6IuRI9x2VZOPWVLf6Wz5CQpZpRf26GfeCQFDF 3NNmjS3UBgpTHzBePe+eK9cjALqpp9j+nzrwa+4jKXupfNPvn4OUVf1pp/rdCglVpJ0c /5TYHRopo0wmfdT6XBRBA84G01+9bp3im1A4lD2adIuWXMIBXvMleCuBhqPpODTSjflg SLIEYuA7NRu7MfYT0/tvnqNP5eqwbXZu14uknISmijGHxCMIMESgq1o2sG4kpig9thLr VJgC9lq0pQA/IBJMJDAEFSaVoBspDQEb+wMdguFYQutP0gjdnX+vcTkuKOtBFELaQh2R B9Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QC3KDRNg78ZjCdaYRzmXMg4fN3X9D3EMFOzaXBEjkuk=; b=GBkTidXVEPxY56v31k9KFnSVEBpSiUbtR2qP9wDzldrf8HxxsKg0BQyhgJYDH8fEJX oEzlCdP34URTl3wBaEJw00T52PiSOgnnIx+fN6g2l4bJE4avwiwBtwkuZkoTA7OM2mWY Na/UmOCm5qjOpmtqR4ZzgV/8fl7x6f3CfzSEw7JccT0WHH+3p15xRCzteY0fZ6xWEpUA /Ry9FJSmF3D2kDlesP+2J5WvxIje+kdNZgI+koh99NM43+hwkKjyfMHksgnCNGGeNSar aMyR8Ftb2+tIF8ZU/YkBJRGZcMftz0MqAfUKuxnUxf7HMp+MNtKAaNnV+zJothLBLsRI fqNA== X-Gm-Message-State: AJcUukdMErC97qboZ+lKwvzyO+DglyreQaLsp+B6+AKdsQH/gA9qwI4S oUgoHjxDBJOzXS7FdwQJQKp3tQ== X-Received: by 2002:a62:868b:: with SMTP id x133mr48570543pfd.252.1546471691085; Wed, 02 Jan 2019 15:28:11 -0800 (PST) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id 186sm106375178pga.36.2019.01.02.15.28.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Jan 2019 15:28:10 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1gepvl-0007o5-2v; Wed, 02 Jan 2019 16:28:09 -0700 Date: Wed, 2 Jan 2019 16:28:09 -0700 From: Jason Gunthorpe To: Aditya Pakki Cc: kjlu@umn.edu, Michal Kalderon , Ariel Elior , Doug Ledford , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] infiniband/qedr: Potential null ptr dereference of qp Message-ID: <20190102232809.GA29987@ziepe.ca> References: <20181224182445.21256-1-pakki001@umn.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181224182445.21256-1-pakki001@umn.edu> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 24, 2018 at 12:24:45PM -0600, Aditya Pakki wrote: > idr_find() may fail and return a NULL pointer. The fix checks the > return value of the function and returns an error in case of NULL. > > Signed-off-by: Aditya Pakki > Acked-by: Michal Kalderon > --- > drivers/infiniband/hw/qedr/qedr_iw_cm.c | 2 ++ > 1 file changed, 2 insertions(+) Applied to for-rc thanks Jason