Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10404425ybi; Wed, 24 Jul 2019 22:36:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqytpE/+DAG+mbMERBIacZEa+MjbfhHFQzlCJnAGoZd6jtn79UXUwGmxI+0Vy5fGjboLCkVF X-Received: by 2002:a17:90a:9488:: with SMTP id s8mr93452419pjo.2.1564032971153; Wed, 24 Jul 2019 22:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564032971; cv=none; d=google.com; s=arc-20160816; b=ZBZ859vt4QZADueUItcgRiET/MuouypYRaozqD5juMAVSGO3RDjH0ohwkEzH5URMkW riIc1EDBSp6fkioi1oElzRtkA72l/t5LDf88DK5W4Ng/aLW7BpfOuVgiGOpqxuIdhPd4 dl4TRcxI/acCwVJBhmRq2D8TZDbVBltbjctaZuCeu0Ym8NpA+g+5sN2hzpsV1pdARvww 173+sIJBKWUKWuE6n5xOAyJYyfnKSv3cIZ2JNVJIQYzAwWabQLMjp+QawLOmyP8de15Z DUPjFtYyA5HdlKcI16LXJfdfWNHBd9UWyXSOrCOMLaKP4f2Df6z9SbwlBnh2/OoFOeUc zI0Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=U98IClSGmOaP9zcHyE5nqvTyhbR91qCn0TBn0oz/CdY=; b=VQhij/XIhfKrvBfXmupZ5bhvfbsab4U1HXpnmbo7/eI3NrljeaGPoSnNKalS8aUb+3 M4gvMQTpCrFi+m+ZnZJt3gFINXfBCWX3X9LI13XGQVeDJpF+YeRbDeQJqTHeUlhFc6D1 s4YPx7IEv3dDXTNx23/qmuZC9ggbpRUNg/nYXqOZqXvO78lIeQNac6qOSrgP3K9pSbqn qsPFJg7tIOtLUZsj4YkqxIKBIKiO+KYlFxEi4+5UgPvN5PJjCQ/Q+kdhtFLSGbeiOrkC gr2bJe5iO7cWE06fnBQmknjxnKptcYAebOcUv5ByJtH+8EKr2s+7UKmiq1NXfOiw+5tS 9yUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=otyzXOTA; 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 u1si14325517plb.234.2019.07.24.22.35.56; Wed, 24 Jul 2019 22:36:11 -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=@kernel.org header.s=default header.b=otyzXOTA; 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 S2392088AbfGXT5q (ORCPT + 99 others); Wed, 24 Jul 2019 15:57:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:43362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392054AbfGXT5l (ORCPT ); Wed, 24 Jul 2019 15:57:41 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7F058206BA; Wed, 24 Jul 2019 19:57:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563998261; bh=T/js2yY3PjgZPEfi3OtpxtXr6ZCEeDIG5lhr3PLXbMw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=otyzXOTAPI8Xoq5IuOGZCtJDMR7F8YViI3bTqXmPIwBJBp/GT46XqX5wX178Faest 39GG8apVtFku/zqB8DVjihpaEB2HHky1S8AR6cMiRqYlOXYtlQYYRv47pdclPxi8Cu 8IsRgFwFso+uGpC0DVHZnuEfBpWE7V5lFwnqSfVE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ronnie Sahlberg , Pavel Shilovsky , Steve French Subject: [PATCH 5.1 251/371] cifs: always add credits back for unsolicited PDUs Date: Wed, 24 Jul 2019 21:20:03 +0200 Message-Id: <20190724191743.564738540@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191724.382593077@linuxfoundation.org> References: <20190724191724.382593077@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ronnie Sahlberg commit 3e2725796cbdfe4efc7eb7b27cacaeac2ddad1a5 upstream. not just if CONFIG_CIFS_DEBUG2 is enabled. Signed-off-by: Ronnie Sahlberg Reviewed-by: Pavel Shilovsky CC: Stable Signed-off-by: Steve French Signed-off-by: Greg Kroah-Hartman --- fs/cifs/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1221,11 +1221,11 @@ next_pdu: atomic_read(&midCount)); cifs_dump_mem("Received Data is: ", bufs[i], HEADER_SIZE(server)); + smb2_add_credits_from_hdr(bufs[i], server); #ifdef CONFIG_CIFS_DEBUG2 if (server->ops->dump_detail) server->ops->dump_detail(bufs[i], server); - smb2_add_credits_from_hdr(bufs[i], server); cifs_dump_mids(server); #endif /* CIFS_DEBUG2 */ }