Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1110254imm; Wed, 1 Aug 2018 10:20:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcj77EHfrNXbA250/IHGmwyvD6Jj33FOG+VOedme82zElV3E85aThgjn4ZToXHPT7UOg9wz X-Received: by 2002:a17:902:b902:: with SMTP id bf2-v6mr24979302plb.160.1533144039717; Wed, 01 Aug 2018 10:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144039; cv=none; d=google.com; s=arc-20160816; b=i9SmL8jfAtbGqsFnYTQ5DGxSWbgQ2+DHETlBkSvQJZw9g5fjlcWecabxoQGg8yDkXS dW1HMEIEyslobJcP3qM04KEyPiCwZoyomb4erbtOsxv5DvVWjq6DyJpmoBrc8oBmdIpi DC/MsFYhKgLXgbP67d6cZQEgxKOo+TCrPlZo85A/J9WDqj3N17xPNgZoyG1oFCn1sbgi N0lI53eE7s0MbzR9Nz82yuCYd0zqdl6X7xihZ2N5AsscOtBGnfkJhen3joxx9RfmUDB3 Qreyelafm1nlZULxRN1VRrzJCAWUzMAcIAuOQIxvTR7PsalquZhzAa38LISQMugNegU/ fO3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=LXR4r8gwmweIrdGda3udsh7km+m/T1NgDxGvCOACnCI=; b=0TpljEhUiaLxD8vTjBgjOuLkM9L9i8BEMnijHxbHqLJPkzuDoIHi6o2e9FpAW9/F+R XaW6NDqxKzvJYdY0UmNxinaiXeX1rfkFonQKTUShblmeozZDNJbEZV8VouBYkQUzHo6d ec1ag9We85Lsx3d8BSbpEMEW33G9FkPXpkRRtQQEOqjhtGRSZp/4W72ndHVLAJRThmjC /glSc/V86LPerHkT4yZ7Ofk4PCcCLmGnWovey0znmYuzmCBw/fieVJ6sgn5pEFjx3cEL Zsl3uiT9iYfoi3dJQ2GZ08rau63o4zKtnQsGvlJdlRHx7p29kAFauXHcj3fm6YD82xer zbJw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si15584238plc.205.2018.08.01.10.20.24; Wed, 01 Aug 2018 10:20:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404945AbeHATFE (ORCPT + 99 others); Wed, 1 Aug 2018 15:05:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47286 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404045AbeHATFE (ORCPT ); Wed, 1 Aug 2018 15:05:04 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 937B1CCC; Wed, 1 Aug 2018 17:18:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Sasha Levin Subject: [PATCH 4.14 132/246] ALSA: usb-audio: Apply rate limit to warning messages in URB complete callback Date: Wed, 1 Aug 2018 18:50:42 +0200 Message-Id: <20180801165018.053882797@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai [ Upstream commit 377a879d9832f4ba69bd6a1fc996bb4181b1e504 ] retire_capture_urb() may print warning messages when the given URB doesn't align, and this may flood the system log easily. Put the rate limit to the message for avoiding it. Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1093485 Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/usb/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -1311,7 +1311,7 @@ static void retire_capture_urb(struct sn if (bytes % (runtime->sample_bits >> 3) != 0) { int oldbytes = bytes; bytes = frames * stride; - dev_warn(&subs->dev->dev, + dev_warn_ratelimited(&subs->dev->dev, "Corrected urb data len. %d->%d\n", oldbytes, bytes); }