Received: by 10.192.165.148 with SMTP id m20csp4855325imm; Tue, 24 Apr 2018 09:25:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx48ekZA0cPNJaGQsv3y6HhkJSYx2vEbs+qxVX+CpN/Jg7hgfC+NxkLesny/xRLTxlVSz83+V X-Received: by 2002:a17:902:8:: with SMTP id 8-v6mr25261006pla.287.1524587158194; Tue, 24 Apr 2018 09:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587158; cv=none; d=google.com; s=arc-20160816; b=BzRRZ4J5bTzkLFXpeDM0qO/tMiqZRNHJw4PgpzTfvE0ilZP09sCFeNn8K5WOaSAYYE nsZDZPAWXSsO9ZGuWrtC2PRHKNOVqCV8N5BQkXUYHZcco3ZJO+gBd9jp90krQHNZx8QT VF9KzgyW9voKeru6QERPlkkvdraYr66LvjUxO2zOm3yyxzjDVZBc7MdMXLFH9oiDgY9M gaBgVWG8VQKsElL2v25ug63SxvW1cPd4u6Fkwdt3053Sqn9VPhVbayTgjCR6QbsgrPwy d29FyNt4/W4ImhQPGYzvfMK347A1nC28o2/z3wHP2C7UKS5c+FS8FmtnL0NOs37PjsAE QLMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=aLbYM1iTOq8yESyp7OYNq+RNrJFqmgTC3MtRcn3OQpU=; b=KAEW/g9BM/tJX80VWeHgnygmLcB7yt2++qxB8vm98xgRH6zD2K2kUl1bEAMDMedO3m 7d+wP+mP3qsVt09jZ53KsiZ1mqeZFnwJIZKWORyTNL9MjhNuyir+Vdcknl5c0wWS67jC czo1OgcqRH3ldTbqlLWmNJk7FpvBP8WQuKJCv0FEZKOmwzqTxewNkKeBg1/ZnZCcB4cU 1Ck9aJ84g3Vf0T0YxgKGhX6kPnDt8dKiqGUfXXOkpBNoEHi+B3imk6R+insPje3f4zPe T+t/FThmJosxGhqv3EjmALr+B8HVDDO5orlf5F+8UMLNONoJ8vovUBlQhlVnw9NJywbe v4pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A7dKUyRz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7-v6si14264148plk.397.2018.04.24.09.25.43; Tue, 24 Apr 2018 09:25:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A7dKUyRz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751389AbeDXQYf (ORCPT + 99 others); Tue, 24 Apr 2018 12:24:35 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:47055 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbeDXQYe (ORCPT ); Tue, 24 Apr 2018 12:24:34 -0400 Received: by mail-qt0-f196.google.com with SMTP id h4-v6so22838019qtn.13 for ; Tue, 24 Apr 2018 09:24:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=aLbYM1iTOq8yESyp7OYNq+RNrJFqmgTC3MtRcn3OQpU=; b=A7dKUyRzQ2hahGJcU5VDRK6GagrGOglIlzTalLIHHiWQoL4JJt9wQ8TPsyr3/gkZni V9eZx8UewfWNy80kWNHbXBVZJd2ML67qd3pL79QsqS1wjcYWlska8nwv0+ZzR4H9aqjf o9lFupxGJU7Si9Wv30VeFT1F6Ff0FEyVlU0mCL2+86c+8mfUuwmosYK6oZ7tj6L0IPhA +LTFWcpuE6OcUQMJ9PiDh39IKQJHSnt5dBw91XK420gkQuegggwGJF27kYW3/1kozshC S7LVB1+nm5FE6+s95vczNSZwkUDQ4CC8NsBJHINj624mZe52k6ytevgiJv9xrRlZyRQu rdBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=aLbYM1iTOq8yESyp7OYNq+RNrJFqmgTC3MtRcn3OQpU=; b=eSyGlTY/bI5MziA8Egu96TaTKjEeF247uU3GRluD9Lx4ZgxIEAg3Q99JvPRHhv93Vy E2tgCq/WlpggIvXw/B5ldSjvS8mS+8Lt97/BJRIYe3l3t8voL5KpsCz0uO+jU65NBu/5 1enxAotQwIzKIj9qLLDCOdeYS0/E+zQq8syytB7EkCBKbeteFMsMmf6n5ytgZqKxWVkw OR3phf09cug9mCVC7bUL1tII88soFqfooXiRgyp2qL2+7zLaKBRRU20xzNau16Uzmuls xLGTNOPbVpPgL1TLck/ed81+vg9CoKrTd5nU3ijT1fvoAsJI31q0VVbbpGD9Sqi+32Pw cEAA== X-Gm-Message-State: ALQs6tAWGDu6p39ThDT8fBXevXGPblvav7hqVsVlDrbIoeZiI7xUvt1g eh5FzRXfc5XhO5GhoiiKS0Jk7u/fg/YywsDJdVU= X-Received: by 10.12.214.73 with SMTP id e9mr4695222qvj.14.1524587073738; Tue, 24 Apr 2018 09:24:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.144.102 with HTTP; Tue, 24 Apr 2018 09:24:33 -0700 (PDT) In-Reply-To: <20180424074459.7215-1-k.marinushkin@gmail.com> References: <20180424071618.GB17825@kroah.com> <20180424074459.7215-1-k.marinushkin@gmail.com> From: Andy Shevchenko Date: Tue, 24 Apr 2018 19:24:33 +0300 Message-ID: Subject: Re: [RESEND PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit() To: Kirill Marinushkin Cc: Greg Kroah-Hartman , Eric Anholt , Stefan Wahren , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , linux-rpi-kernel@lists.infradead.org, linux-arm Mailing List , devel@driverdev.osuosl.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 10:44 AM, Kirill Marinushkin wrote: > In the current implementation, vchi_instance is inited during the first > call of bcm2835_audio_open_connection(), and is never freed. It causes a > memory leak when the module `snd_bcm2835` is removed. > Signed-off-by: Kirill Marinushkin > Cc: Eric Anholt > Cc: Stefan Wahren > Cc: Greg Kroah-Hartman > Cc: Florian Fainelli > Cc: Ray Jui > Cc: Scott Branden > Cc: Andy Shevchenko > Cc: bcm-kernel-feedback-list@broadcom.com > Cc: linux-rpi-kernel@lists.infradead.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: devel@driverdev.osuosl.org > Cc: linux-kernel@vger.kernel.org AFAIR I gave you a tag and you again missed it. Before sending anything just check twice if all prerequisites are fulfilled. And yes, kbuild bot is right. You need to return known value. -- With Best Regards, Andy Shevchenko