Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp23670pxb; Tue, 12 Apr 2022 15:43:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNMaxKaiSqNCXtAqTuGAyxoqDShRM9gV7Pqvk+FTmWhHjh8vnI9O+nrE7EpwTLHDRAi6kQ X-Received: by 2002:a63:c51:0:b0:39c:c5ac:9f3b with SMTP id 17-20020a630c51000000b0039cc5ac9f3bmr24467557pgm.257.1649803414630; Tue, 12 Apr 2022 15:43:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649803414; cv=none; d=google.com; s=arc-20160816; b=n6Ctk0U6vkHzWrYsTyWM/j36AfDv04urMb3g3GGn0K3sNY4VfbzZMK0Fo9mtrGaYmr BZtAX1SBE2edF5di1qTcXMgSsmuLPLrP3rT/O6T7jcj6xHb+zvq/FN1bwp+JjkE8gP+r tokrUGQsxOksrWsqgVasQdkzLGeAsFJFrkVjUa49YIIJO1L4dE/HA2Dqrdy+689h23Cc C2jaASFM2uKKbbAE87VPoA0Sr06uEoc8z4jHjA55azJWYbJJiqumFFvLBXU6h6sulAnT yTgCpMXUWUS/XhjZyaJBCBz0yG0r0JPalsvfzMvhNVOFRUGJvyu8Z6m2Di7IJsJ2KkOF jAnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=67mCkHF60r55oRZeqv4aeWaByu0tKRan+N2/NFCfB7Y=; b=XS2mdSRqULyFM1ZpiAMRzy8HqmdWPcdONnAiLUossM9gkey7mWxDZdS60/4hnhzEzm +e+8aQWuDH9lE92BldqxjONYRxfNKM8d1+opjb13wjIr05KiX4/Ngy7JsvcJIBYr2h5b FAuD1IaXMJftRmzn9mfewjnGOwKMw8SAXdTQcUmku418PKTDdBfWhKuCXn7iE7RMbrCk uqKsR1tEZO1fNZvcFzlVtMcabkqw3A5tCuC0AmqaPyT9qjXkCoscgTQn5F2PSXo/gUSG ncoZsPzGeXeq3ERrkR6N2SOLYve4jpSVY0pzlEkU8cHM006c3/q3R773MujYT8KIDOgb Sulw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=iTH4u+Og; dkim=neutral (no key) header.i=@suse.de header.b=SIlxp6VL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id om7-20020a17090b3a8700b001c6f8baf3ebsi17361830pjb.124.2022.04.12.15.43.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:43:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=iTH4u+Og; dkim=neutral (no key) header.i=@suse.de header.b=SIlxp6VL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7B1511B257A; Tue, 12 Apr 2022 14:25:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242643AbiDKKcV (ORCPT + 99 others); Mon, 11 Apr 2022 06:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345544AbiDKKcT (ORCPT ); Mon, 11 Apr 2022 06:32:19 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 820462FFD2 for ; Mon, 11 Apr 2022 03:30:05 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 428201F38D; Mon, 11 Apr 2022 10:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1649673004; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=67mCkHF60r55oRZeqv4aeWaByu0tKRan+N2/NFCfB7Y=; b=iTH4u+OgP3+P8+h7flIbEUiVKgLAwowc+ZQ8HhI/Lr5iPI2FnexsZf5rAX9Rxn3Za13ecW NdPX5MCShFq/q0vrCjNRjsQCdsQTQVp6gl7oorf5zp07LivTcOlHS9Lvs8/NYcDNGFE6T4 JRTnDEOcUNE8aUt4cnFlBohgAHPfY18= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1649673004; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=67mCkHF60r55oRZeqv4aeWaByu0tKRan+N2/NFCfB7Y=; b=SIlxp6VLWn/9Tg5hKgKP3zj1vdnQgpmt9PboZSg/wMHezbwUvTyD9G/vc82VJF9yjcQge6 FOE801GCggZUT0Bw== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 35764A3B83; Mon, 11 Apr 2022 10:30:04 +0000 (UTC) Date: Mon, 11 Apr 2022 12:30:04 +0200 Message-ID: From: Takashi Iwai To: Zheyu Ma Cc: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, Linux Kernel Mailing List Subject: Re: [BUG] ALSA: echoaudio: warning when the driver fails to probe In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 11 Apr 2022 11:15:41 +0200, Takashi Iwai wrote: > > On Mon, 11 Apr 2022 11:06:09 +0200, > Takashi Iwai wrote: > > > > On Mon, 11 Apr 2022 10:49:53 +0200, > > Zheyu Ma wrote: > > > > > > On Mon, Apr 11, 2022 at 3:41 PM Takashi Iwai wrote: > > > > > > > > On Sun, 10 Apr 2022 11:13:55 +0200, > > > > Zheyu Ma wrote: > > > > > > > > > > Hello, > > > > > > > > > > I found a bug in echoaudio.c. > > > > > When the driver fails at the function snd_echo_create(), it should > > > > > release resources requested before, otherwise we will get the > > > > > following warning: > > > > > > > > > > [ 3.262866] remove_proc_entry: removing non-empty directory > > > > > 'irq/21', leaking at least 'snd_indigodj' > > > > > [ 3.263577] WARNING: CPU: 3 PID: 261 at fs/proc/generic.c:717 > > > > > remove_proc_entry+0x389/0x3f0 > > > > > [ 3.267098] RIP: 0010:remove_proc_entry+0x389/0x3f0 > > > > > [ 3.269976] Call Trace: > > > > > [ 3.269979] > > > > > [ 3.269988] unregister_irq_proc+0x14c/0x170 > > > > > [ 3.269997] irq_free_descs+0x94/0xe0 > > > > > [ 3.270004] mp_unmap_irq+0xb6/0x100 > > > > > [ 3.270011] acpi_unregister_gsi_ioapic+0x27/0x40 > > > > > [ 3.270017] acpi_pci_irq_disable+0x1d3/0x320 > > > > > [ 3.270025] pci_disable_device+0x1ad/0x380 > > > > > [ 3.270034] pcim_release+0x566/0x6d0 > > > > > [ 3.270046] devres_release_all+0x1f1/0x2c0 > > > > > [ 3.270057] really_probe+0xe0/0x920 > > > > > > > > Could you try the patch below? > > > > > > The following patch works for me, the previous warning disappears, thank you. > > > But I got another error, I have no idea about it. > > > > OK, that's bad, it's basically the destructor order problem. > > Could you try the patch below instead of the previous one? > > Sorry, the below one instead. Err, scratch this one, too. It's a deeper problem than I thought. Will post a revised patch later. Takashi