Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp451695pxb; Wed, 18 Aug 2021 06:16:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBejpKGNEfFJyYpFBj7ayj5Nz2jtD14VKg8XbkK0iSGMP1tgsEULCJBT9iGQb9iUOv2MVy X-Received: by 2002:a02:a196:: with SMTP id n22mr7961070jah.24.1629292596517; Wed, 18 Aug 2021 06:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629292596; cv=none; d=google.com; s=arc-20160816; b=axfTF0azbjzsbrb92rfHst9K2V8oRigoRR4loGF4x96RVP0MhDNq60SpJPAQXn5K0F ESDEH7nVbKIxngonD/TddPCWiNQqoqwAGS+YU78IE/8oXawZxz4w8ZRNn2eeQPf+2VMb l3SF4j1nRbfJgdl0VRZkXMxueSVrG+/n0ZWNfa5cgt2hytQYfRTBC6qeJewzoWYaKJow 3z+tqM+7Qd/k8mW3qfsKbdGi7BvtmAg01IrNo08R/UdHfSHmWrfiTFar81no72kDBYxR DsuVYAW9ThRd+N8zOHEdSjMI2hw6HKqbjI5PiIvAXOH8z3tMZmu9QMqD/7budZBDCT/n Ke1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=K3i0w/PJ2jBNgKKFXvAd/B4bypK7x8G5cCxZoJVhCr0=; b=orW7csQd/uO/jCpNB8SmoigWuJ+gsoFzvnd2rQ7LzjQkfazu4uHv4k/QEPsTlsHq6A IUQvEdWTVVuORp3Ul2u1LJIQrfjlX3Ssv9SvMFk82lzBCn+S+OfK4oeVJ5ryK1ocKv/0 udkR8/I7+jcId3cQKebblw22UhR2CpdnPEORzk50rHK+/FR8fSICpeNAfocxx/m0Dw/k rn3tTXGp1iZfqZWCQoZNgSwBaXDNVieTIY4LLREppQRjifuUT+w8wmLMM9lqMa4MinID jFXxru6HzQLC4FV6OHAoKw/C8oID8e3aJg6G0mNhbBd7uj1SRPZ4YXaT/6oA/q5RofhL mRUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EhJPN9uU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si5498756ily.49.2021.08.18.06.16.24; Wed, 18 Aug 2021 06:16:36 -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=k20201202 header.b=EhJPN9uU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236672AbhHRNOX (ORCPT + 99 others); Wed, 18 Aug 2021 09:14:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:33860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233634AbhHRNOW (ORCPT ); Wed, 18 Aug 2021 09:14:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E6FB61053; Wed, 18 Aug 2021 13:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629292427; bh=8IJq03RMdqeG/eCNav7p0tdBwUpOJakfrHP5oq/kqZA=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=EhJPN9uUxzFB727ikx0q/V0ZPA17Lodxq83IaXNr5HzZTYKp2V7fCnbKMZsW/5/qQ HoFSYQPlfkzQil2CzN0T+kqbBkXgGb3pWgMHWm+SXtJ1z2WU0AipoAYw1Ki9NcEjss hVZdKi8m5tU/rP8aWlD87FfV70pr0loUbWZCB2vpHdDq+/hX8R5b+3AiC6RJW9OmGR 0994smDLpgUwOzc7gipILdX3XMT2W5h6syHRLq0ZLABkQyetgNU24ZrNZrBU7Tgr8D m0SVBJ3p+5jkktAGGBEcOGNEAJMF3OmzW7cuhAThn1Um14s6xZYcKVmQmygSACizYh LFSJoLwHoZXQA== References: <20210818130135.575-1-lutovinova@ispras.ru> User-agent: mu4e 1.6.3; emacs 27.2 From: Felipe Balbi To: Nadezda Lutovinova Cc: Greg Kroah-Hartman , Johan Hovold , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Subject: Re: [PATCH] usb: gadget: mv_u3d: Change functon call in mv_u3d_probe() Date: Wed, 18 Aug 2021 16:10:55 +0300 In-reply-to: <20210818130135.575-1-lutovinova@ispras.ru> Message-ID: <87mtpegak8.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, (first of all, your subject could be a little more descriptive, something like: usb: gadget: mv_u3d: request_irq() after initializing UDC as that would better detail what you're doing) Nadezda Lutovinova writes: > If IRQ occurs between calling request_irq() and mv_u3d_eps_init(), > then null pointer dereference occurs since u3d->eps[] wasn't > initialized yet but used in mv_u3d_nuke(). > > The patch puts registration of the interrupt handler after > initializing of neccesery data. > > Found by Linux Driver Verification project (linuxtesting.org). this looks like an important bug fix, it probably deserves a stable tag here. Which commit introduce this problem? Otherr than that, commits looks good. -- balbi