Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp11997ybh; Tue, 10 Mar 2020 18:10:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vstTPj59XZMMRsL7w1nR1EyPP+z0EJnGD+B/BcDS9N36qHj3FD5eaC36S22ULlrJLuN8OX7 X-Received: by 2002:a05:6830:19e2:: with SMTP id t2mr398962ott.97.1583889039389; Tue, 10 Mar 2020 18:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583889039; cv=none; d=google.com; s=arc-20160816; b=Ghh5YFsGT6K/eaMM7VE3TEC0gQBSz0vDNJk7HmWJ6OxGrufuhkbWYKW+T4sHkTmAGi yKil6v/cL1kXk9DUqUouEfNBD4/H+RHSAWgmcILRoBqAecIRkMhemlmK0nS6hWbs59sh Z9C5WFoi0m7XP0hI4cP3x2sxxnMGEtXD3j9PPjkdzFAlipqP6JnW7svPxoVCQ5N+vay9 eJmHq8nu/FY90RlhMqpiBCy+Ms/KjoY2DNecuE3w3NA8Li6l/+Osq5/ss+MNMsxJhG7f +XcGIRXGQ1ZuUXqXV0gRev9rQyibVLHwwuMt2qFcelKOa5kCralPLomia6CXMOr8y7CH ffBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rM3cbsU55xJlyKmK7QwcQylOwbs8Tma9Iu3Kufv/e4E=; b=Hom1IBTzmKf0kgaXyDfG486RdrJ7LEufVs7MvRZBNdPGaBpJ3L3EPV/LfgvifZ8Na5 dBx9LC1jthtIOUwpD6ASK2MIyYsY3zKtsywG5vS0IDWy0Z5w47QcY/DOBRc5q1smyP/A 22mGhdxxVAO/LB/r97MWjC4aH0FRMshoe7LmB/LmxPFbk5w0seCHC2cS/jVUlZQpomZ/ 3OkhstZFBI8t8MziDZtEjj9t3TCRsNY4NT1LvJdtkhF+4fuZS50rtm6FtSQVBblxAwZc 9rguWaQ99UBLqNTTYW4OCfozG9QZS7G8HAgMJff7VgYPr76W5rTLOFAU5Dp4+zGasQr+ Ok4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r93FSAoX; 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 y2si257936oto.123.2020.03.10.18.10.27; Tue, 10 Mar 2020 18:10: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r93FSAoX; 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 S1728018AbgCKBJp (ORCPT + 99 others); Tue, 10 Mar 2020 21:09:45 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38268 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727923AbgCKBJn (ORCPT ); Tue, 10 Mar 2020 21:09:43 -0400 Received: by mail-wm1-f67.google.com with SMTP id n2so291068wmc.3; Tue, 10 Mar 2020 18:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rM3cbsU55xJlyKmK7QwcQylOwbs8Tma9Iu3Kufv/e4E=; b=r93FSAoX3d3rZQcJ/3HADdXXtRixoWxZEGpdEuNh0YacpT4Ty8mUDyVxEXd8TyYAtj LKVik9H7txixvdX862XIkrjHwM1wrTzq1MWIMARCGXuI1sfYt6D3TbZn9bJcziwFzylW QkQ/5WyQTgdqlBkehnSHgYQAWLjnZaHvq/Psc+ZSjzU/FjJxMzNASkz3Wy9d3p8rzVTK 9OzIcb5VGOsWocOu9tiURVX+ew1NIko8nZChiBDq1v01xXMRPTbl7pkv/o+kflW3Fk9L v2kaH0GAh1KA7FtRSKVkqo68xL0Ij7MsGl8w+LDDZSd9znw+IrbTXc/5P6le7RihJVqV zA2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rM3cbsU55xJlyKmK7QwcQylOwbs8Tma9Iu3Kufv/e4E=; b=AsHQXcQ4MeKA0EaPBa0H3arRCkvTHVCxxorkMn+io5P7iHyPErAbQW2VUDXvoYm4bf z+aMPY5O2EZxwj750hTB2Bnl0nMjxUnyXvJyykDk2pIdIv5PzD0JRZsJK+1N6ZIJ2aom Xl+q+wzWU1fyMFjULT2b1tBhOMU9ji9skmYhxBti2moeRYD6dpc+ez2VR/WqIeX0YgKC B+UUoVpg6sd2j9OG0f1cAt7g24XlDnwFlKp2U9IyiP1BtR04yQbVYLXzYlUI9GHsWJP5 QtyS6k9UYR2erwcZMtK1QH0QgAnaZnu1ORDgAZkE1YC3YywBfVUD3hydgaQwT0ve9Umv jAfg== X-Gm-Message-State: ANhLgQ3bdzTq7SWTuZvvL+yV3KKdkIz0nzt0UzCIdtrdfH00MBNaVqgK 6ubKVHu1+ZV6b13lTaGbUQ== X-Received: by 2002:a05:600c:294a:: with SMTP id n10mr433928wmd.11.1583888979445; Tue, 10 Mar 2020 18:09:39 -0700 (PDT) Received: from ninjahost.lan (host-2-102-15-144.as13285.net. [2.102.15.144]) by smtp.googlemail.com with ESMTPSA id i6sm36658097wra.42.2020.03.10.18.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 18:09:39 -0700 (PDT) From: Jules Irenge To: boqun.feng@gmail.com Cc: linux-kernel@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, Clemens Ladisch , Takashi Sakamoto , Jaroslav Kysela , Takashi Iwai , Alexios Zavras , Greg Kroah-Hartman , Allison Randal , Thomas Gleixner , alsa-devel@alsa-project.org (moderated list:FIREWIRE AUDIO DRIVERS and IEC 61883-1/6 PACKET...) Subject: [PATCH 7/8] ALSA: firewire-tascam: Add missing annotation for tscm_hwdep_read_queue() Date: Wed, 11 Mar 2020 01:09:07 +0000 Message-Id: <20200311010908.42366-8-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200311010908.42366-1-jbi.octave@gmail.com> References: <0/8> <20200311010908.42366-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports a warning at tscm_hwdep_read_queue() warning: context imbalance in tscm_hwdep_read_queue() - unexpected unlock The root cause is the missing annotation at tscm_hwdep_read_queue() Add the missing __releases(&tscm->lock) annotation Signed-off-by: Jules Irenge --- sound/firewire/tascam/tascam-hwdep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/firewire/tascam/tascam-hwdep.c b/sound/firewire/tascam/tascam-hwdep.c index c29a97f6f638..9801e33e7f2a 100644 --- a/sound/firewire/tascam/tascam-hwdep.c +++ b/sound/firewire/tascam/tascam-hwdep.c @@ -36,6 +36,7 @@ static long tscm_hwdep_read_locked(struct snd_tscm *tscm, char __user *buf, static long tscm_hwdep_read_queue(struct snd_tscm *tscm, char __user *buf, long remained, loff_t *offset) + __releases(&tscm->lock) { char __user *pos = buf; unsigned int type = SNDRV_FIREWIRE_EVENT_TASCAM_CONTROL; -- 2.24.1