Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp66350pxu; Tue, 6 Oct 2020 00:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXKLa8mW5WZ1x1UCCf3li8TGKMmuiUWN0/cBV50nEwkwihk0d+KxubrJIrkl5r9FyfYnT1 X-Received: by 2002:a05:6402:18d:: with SMTP id r13mr3784942edv.267.1601969013991; Tue, 06 Oct 2020 00:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601969013; cv=none; d=google.com; s=arc-20160816; b=vxdoGof/o4w+ocsiXsJqiKhCCga0QndNwjKgYkq9VTjg8f5nGaTCDO1QdlxYFTiIY1 8DRP0rDvCMhKRr4OqZN1ojdGAC5akuyHs6Nmt/cvnzN2cuDIJ1Aj1Z+4ueephYGvSLPe kzZLebqe+DjQv/Cld3LHYxM2RHZm20poMX+NX8mzWw+wsbuU5qVom4fRdo+ItT+xWChK SIJyxen6b8vzdx6kwrZSNTKBUTiOcQiqZAcDhnLGlws9Y00j/YJPvkwUTmOKHkZzCKeV qWdpJLF6CChu0uJq5sMdt/7OZ0Ws/b/2xIeeu2gtUCVkEhGEwOXp9aiu/BRb7xpELQPm lIHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=v4rvEaSZLf11PbH36wzQSUAXn6laWaylhzGFeaqaT3g=; b=elTwaR/C+wwELcwtCwsigaqMPuJKt3mEBk8Ck+4hde29TyCH1q7N7tLe4ZyksdYwPh G/Ndw2VwowthBrRVa4n28DFzaEw0HefG5r8Hd1HuGqx2FZZgzPl+v92M12lW2DvETf+l mux4hh/tm+Q+AyYtPmDJ4Gr2WWGODwxcOPuKW7wX3R4GFKwzV8nCuU/GCuQFU9o3oUzh uVezVFIY3l15U4Z2FtiCICtYjvhUVsWYb1zNyzKmlcBv1Dz8w8NK4uNcfuyfI7qLelGR wub+kXLGiOCSnJVekxPWd8HC0++HgWdF0ZEhLUHnmiWudnX0hoO7BI8vq30ubDclPtpX +Y9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RudRPuqM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u17si1397062ejb.491.2020.10.06.00.23.11; Tue, 06 Oct 2020 00:23:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RudRPuqM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727235AbgJFHTm (ORCPT + 99 others); Tue, 6 Oct 2020 03:19:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:49154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbgJFHTl (ORCPT ); Tue, 6 Oct 2020 03:19:41 -0400 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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