From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B51F8C19F28 for ; Wed, 3 Aug 2022 12:26:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237975AbiHCM0y (ORCPT ); Wed, 3 Aug 2022 08:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238010AbiHCM0n (ORCPT ); Wed, 3 Aug 2022 08:26:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 308DF57270; Wed, 3 Aug 2022 05:26:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A8F05B82258; Wed, 3 Aug 2022 12:26:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53D99C433C1; Wed, 3 Aug 2022 12:26:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659529590; bh=gXkbbL4x75dYnAlYPQxV4R73v+dDewWOi3hfCByvglA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=fTb3dMV3xzjVw9uQh/dzT3YBMj9dBGOASR3wI23mUayd0u/WyD++aZMSkce4NCBva XeeqN10A7Mc/YF/LUtcyK7Ciu8iewuG70MmexYsxioHJZ2dpKQTW4OQlpmI5IsO4t2 zt1A4Xwxg5h8p9aUmxzaLon8ZRzC4IScyMgl3kdL4D2WtFaa7un+r4x/aS8Mj4P0fg yDThmbcgZQWqy3ZJJ9WkyGU7sXYoOazPve5D4M+aQb1v2llEFqEYfGCGHvnvw5sV8H mowrktM87ntrpdtUVXhhGsa8UES1tVq61VDFSt3iFnzbiAJqdRAI41qZilsVZp87nu KqmRvg/DwE7nA== Message-ID: <0404b476-ce96-0c01-1380-4b6873e79a08@kernel.org> Date: Wed, 3 Aug 2022 15:26:25 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v2] usb: cdns3: change place of NULL check in cdns3_gadget_ep_enable() Content-Language: en-US To: Andrey Strachuk , Peter Chen Cc: Greg Kroah-Hartman , Pawel Laszczak , Aswath Govindraju , Felipe Balbi , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org References: <20220728163014.247082-1-strochuk@ispras.ru> From: Roger Quadros In-Reply-To: <20220728163014.247082-1-strochuk@ispras.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On 28/07/2022 19:30, Andrey Strachuk wrote: > If 'ep' is NULL, result of ep_to_cdns3_ep(ep) is invalid and > priv_ep->cdns3_dev causes panic. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Signed-off-by: Andrey Strachuk > Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") Acked-by: Roger Quadros cheers, -roger