From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mx.groups.io with SMTP id smtpd.web12.8850.1601968782191629149 for ; Tue, 06 Oct 2020 00:19:42 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=default header.b=RudRPuqM; spf=pass (domain: linuxfoundation.org, ip: 198.145.29.99, mailfrom: gregkh@linuxfoundation.org) Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CE41F20789; Tue, 6 Oct 2020 07:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601968781; bh=LNvDSp5Z7ckYp/tfBKKh/c0uKzVgBYQkEA3ApjQ/XAo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RudRPuqMfeRzH2CdAdAfUeQNERc1m7eIvf8sr2VJhxUPWSJYQYbevDWycHB90JytL ZNJymQGhY6biBYvBBRCBne4bNQKcC6x3Cw7o56JWE7FWAYfdSTmM1FL2+2Rhkm/z9G pKw5CoUinzcI6T7MoKuIwJJYPaeyDMOCPxUxP9kc= Date: Tue, 6 Oct 2020 09:19:38 +0200 From: "gregkh@linuxfoundation.org" To: "Harley A.W. Lorenzo" Cc: Sudip Mukherjee , "linux-kernel@vger.kernel.org" , "linux-safety@lists.elisa.tech" , "linux-usb@vger.kernel.org" , "stern@rowland.harvard.edu" Subject: Re: [PATCH] usb: host: ehci-sched: avoid possible NULL dereference Message-ID: <20201006071938.GA5503@kroah.com> References: <20201005213149.12332-1-sudipm.mukherjee@gmail.com> MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Oct 05, 2020 at 11:19:02PM +0000, Harley A.W. Lorenzo wrote: > On Monday, October 5, 2020 5:31 PM, Sudip Mukherjee wrote: > > > find_tt() can return NULL or the error value in ERR_PTR() and > > dereferencing the return value without checking for the error can > > lead to a possible dereference of NULL pointer or ERR_PTR(). > > Looks fine to me. There is in fact no checks of the return value > before a dereference here, and this solves that. > > Reviewed-by: Harley A.W. Lorenzo ' there. thanks, greg k-h