From patchwork Fri Mar 27 17:55:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 11462863 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2C2A66CA for ; Fri, 27 Mar 2020 17:56:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0AAE320714 for ; Fri, 27 Mar 2020 17:56:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IcWfscxA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726275AbgC0R4E (ORCPT ); Fri, 27 Mar 2020 13:56:04 -0400 Received: from mail-yb1-f174.google.com ([209.85.219.174]:34551 "EHLO mail-yb1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727495AbgC0R4E (ORCPT ); Fri, 27 Mar 2020 13:56:04 -0400 Received: by mail-yb1-f174.google.com with SMTP id l84so5044852ybb.1 for ; Fri, 27 Mar 2020 10:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=DcQ56eQ3xph6rwCXdlBzwae2vmFFWbbLkVbh6e5P3Bs=; b=IcWfscxAS2JFR/xkpfHQZSg5VpzcZVM0JU196yRFCOY0bEIs29iwKMu85KEQ7b1QvM 50ApcJlx6YwWOXD2/JPAhT9U6cC2AatQ4TbyGHnfos04xo1eFK6ijjyNWfHs+4X9/q7H ECsmw96zlgNodfwqzHyIevjF7bZwzzf0Kwwz6Fe6ozam9bqsY2LfI2LQlz35EzJ5Kxp5 hJKWR95vbUlbVfydsPXH8iF1u7GKrECVxr0LrDPiyfEEF1yjsbUaNq6rQ1l0RsBsGh3j wLe+iB3aa9WoKRa32K6zEHJXb3pHak8ErZNEdUHJUwouQuxXLA4p8/aORedkEPOmx1Qk 0ATQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=DcQ56eQ3xph6rwCXdlBzwae2vmFFWbbLkVbh6e5P3Bs=; b=YMiHbd7+ni5qVZAXzgEM5yb98iW+0NomPyVoW3xApRR+b0YsbahweIrZAs8zdcALDt LkFHfGNAH7/fFNj8xmQDZ8tO/Uza5VJoXnBumCenyUu9WGU9OvZkrX3NSg2dc7vxfL0p eDf2I1ov3VRMdXINosu5ygHyWebraOYhCNcp1keaozFjhngGITTfBkJhwO6MssM9ZQcu rXEs1lSsBK1NProQvIuLVKCIdxdvsAnPTPtsDMhMKwabZAzZ9V9CwnUyJgkYQtn4/wqG 6/OF75wgSfpUd6s9apCAqlfJO12l6ng9wbCoL2rOMvy07/ZIz4+5nGj7eebbZe2s5YFH AJ+A== X-Gm-Message-State: ANhLgQ1OmRKzv2m0a6x7SA461oaLwhTUQ7L5KMOmuvAQN5DwAwbedIk2 dHnPBCPc8a5acZD0UtPkAX5BNG69gJpytUq0Lno1BrOR X-Google-Smtp-Source: ADFU+vux7wF6HJ2uUv48bsUmMeV9Gb5OGezYktNeINetSZZz1GQKTD5wCTKvdXGu7FwFIblhRyUn47g6hIG16N8Nr4M= X-Received: by 2002:a25:aa69:: with SMTP id s96mr7092361ybi.85.1585331762892; Fri, 27 Mar 2020 10:56:02 -0700 (PDT) MIME-Version: 1.0 From: Steve French Date: Fri, 27 Mar 2020 12:55:52 -0500 Message-ID: Subject: [PATCH] smb3: use SMB2_SIGNATURE_SIZE define To: CIFS Cc: henning.schild@siemens.com Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org From edad734c74a4ab6ba8531186054779b2382df3fd Mon Sep 17 00:00:00 2001 From: Steve French Date: Fri, 27 Mar 2020 12:47:41 -0500 Subject: [PATCH] smb3: use SMB2_SIGNATURE_SIZE define It clarifies the code slightly to use SMB2_SIGNATURE_SIZE define rather than 16. Suggested-by: Henning Schild Signed-off-by: Steve French --- fs/cifs/smb2transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smb2transport.c b/fs/cifs/smb2transport.c index 08b703b7a15e..2b67a7769d74 100644 --- a/fs/cifs/smb2transport.c +++ b/fs/cifs/smb2transport.c @@ -602,7 +602,7 @@ int smb2_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) { unsigned int rc; - char server_response_sig[16]; + char server_response_sig[SMB2_SIGNATURE_SIZE]; struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)rqst->rq_iov[0].iov_base; -- 2.20.1