Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10188429ybi; Wed, 24 Jul 2019 17:59:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvo+yrU7Zw0PIVJGSWoqhmMlBqQ4PyNegfpUka2Avfw+HQo47byu2HtQ6OZ5GYZf4marUo X-Received: by 2002:a17:90a:ad41:: with SMTP id w1mr89117615pjv.52.1564016347377; Wed, 24 Jul 2019 17:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564016347; cv=none; d=google.com; s=arc-20160816; b=kqL8r++8JtmA3RSK44hUdOUKgQuSd2FwOVBiU1uxFw1m4IsZ0Pcqw3bl6PYa/kYb8T QssSD5Fw0Nmpi0P7vzek7IQ9q7lmurdQf4aGBHZISX6Vv3M3vP50ccqKbwYdOMDrNmTl jdluUShzHMgeKFmGJ4zgFDcKszqPlEy5BQ0uzlS5EFMPprsv3GsA8mLSoLlVezLuM6V5 8hmVrTvSGUKfO/yS0oTRpIhoIqMzULYbEbcDaThlK37Vl8Ts20pf8OmOPgnWE6zqRTjy Y/yuLchztwFIukXs2oQpA+0VULJHcK49zxBY/0Q4YqbpgHDBXsV4/nBhrX4FfBe5dLWK bWIQ== 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=5Kr81CsjmKlmMkBYa9n3oL145T9S32La+cCzaPnqMOk=; b=T7v+1DE2/JfEEYo5CjnDVft5xtU0pFpC6YtR/OIiIoOGJ2/gRIaE6k2T/JlrxKsjO5 Zt2TJ7SlOycncxx2/pFSHJPMHh9gwko7Mo1XNcg5Lwr8tNYa5fCEuxcS8ZtcO3r5pEAJ mgujvQVugi0PYrOccA2ajH/azWbmpWRPK9x1KVVm61aAuxFdm7Sfwafd92LxRbTb0kwR got65AseYM1Gzj3wmDerfZjghZoBIPdy1S3u+8XjYmJC/aGwB0Em+RCkelL7aOjZ02zl L6QgLI/Yh7vuy5e0NJt5p1dmc7NddchdC7dmvZn+LRP2TChgwAZiJ5sNTAilrW9R+RpT 65GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="HJz/dATw"; 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 e36si18865797pgm.527.2019.07.24.17.58.52; Wed, 24 Jul 2019 17:59:07 -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="HJz/dATw"; 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 S2389011AbfGXTgC (ORCPT + 99 others); Wed, 24 Jul 2019 15:36:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:35140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388970AbfGXTgA (ORCPT ); Wed, 24 Jul 2019 15:36:00 -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 0A7BE2238C; Wed, 24 Jul 2019 19:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563996960; bh=jKLAJo9aJTG1ktqV/QZjLsO/1QBD2+lXkS+wx8rR9k0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HJz/dATwbsXNZNlyubpj+6Je0uPmdajtBVwezKSIXXhwrpArDxrg0/eaKp37csEbX WM0gDk0gPq4aqPeeO45sWgE8ehK4maEPSTg1JZjLxTHoy+fsscMNp7FfQRpVPtzL1j 7sr/eb/pP7K/MTLTKIFv9g1d5CNOmy3UVjFZH+Hw= 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.2 275/413] cifs: always add credits back for unsolicited PDUs Date: Wed, 24 Jul 2019 21:19:26 +0200 Message-Id: <20190724191755.948619129@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@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 @@ -1223,11 +1223,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 */ }