From patchwork Fri Jan 5 13:27:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shivasharan Srikanteshwara X-Patchwork-Id: 10146569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0B65C601A1 for ; Fri, 5 Jan 2018 13:29:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF84F287CD for ; Fri, 5 Jan 2018 13:29:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4412287D3; Fri, 5 Jan 2018 13:29:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87DD1287CD for ; Fri, 5 Jan 2018 13:29:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751689AbeAEN3O (ORCPT ); Fri, 5 Jan 2018 08:29:14 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38007 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbeAEN3N (ORCPT ); Fri, 5 Jan 2018 08:29:13 -0500 Received: by mail-pg0-f66.google.com with SMTP id t67so1992046pgc.5 for ; Fri, 05 Jan 2018 05:29:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5HwnBytM8fsr3kLcDB8tVIA8Eh9zRtsndwuZ7hEZ5nQ=; b=aAznbgS9B6mlLdg9GaTQSAo/HxwumvScF4F+6k0AJSattPkmjo0MUcL3KippxJg8dD NG0YUOydv6kDWm7VE7WTBLAk/xJWDoKi6x5kYyLpKW5Fs51B+DBy6wd/A0T7YhIx9A2o DWQzVpilqDyvy2J7XyrkslxPXYmk5y/1EOpeM= 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; bh=5HwnBytM8fsr3kLcDB8tVIA8Eh9zRtsndwuZ7hEZ5nQ=; b=eVGS01ONMsz+NhvLyw4z130SLvIlp6UUKC2PFD5nte0vZRMk6a6VqCtjsFgivv7g0l V13BheZ65/wN0lzBn1zXZQiMCdPVxnPynHpmrPI604Q2uRFciTirsKc59v5IIMFDBPCh y8VVfx74aMqiqInUk0pKWjt32zE2HMzqloZcYENnrWz4rwQOXU1c34jueMLdnim0d6yE jrycIbu5CZIVeRfsQogHMzkw1PO0DYcliSaJhsJVp+wiN2T8/byua8gLFzh5rMh3hB7p oBd0ZR3+iGMQI4E48qS36bnAFji/Q97qZtJu76cWpVM6n4APyANy92EVUWJ+3ZQYpMXq 9/Dg== X-Gm-Message-State: AKGB3mLzKOlHky5qxkgKqqKFkDm2xAUm+L9HuD08PDB73GOjZjKEAn31 Q+i86ddT3OFKgwODtYXFu052qFaS X-Google-Smtp-Source: ACJfBovthWsttNcIB0tNuWBFe+3qBW5BnggFQFwAMKTsptdm+bEBJl4FJjP2mp6gCpuj6vZcAilKsA== X-Received: by 10.98.129.193 with SMTP id t184mr2972305pfd.159.1515158952383; Fri, 05 Jan 2018 05:29:12 -0800 (PST) Received: from dhcp-135-24-192-142.localdomain ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id 68sm12588733pfx.186.2018.01.05.05.29.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 05:29:11 -0800 (PST) From: Shivasharan S To: linux-scsi@vger.kernel.org Cc: kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, Shivasharan S Subject: [PATCH 02/14] megaraid_sas: memset IOC INIT frame using correct size Date: Fri, 5 Jan 2018 05:27:37 -0800 Message-Id: <1515158869-26693-3-git-send-email-shivasharan.srikanteshwara@broadcom.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1515158869-26693-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> References: <1515158869-26693-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit b9637d14dc00 ("scsi: megaraid_sas: Resize MFA frame used for IOC INIT to 4k") increased the size of IOC INIT frame to 4k. Need to use updated size when memsetting init_frame. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 0d6d4dedad62..ea3312205a0e 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -1048,7 +1048,7 @@ megasas_ioc_init_fusion(struct megasas_instance *instance) (tv.tv_usec / 1000)); init_frame = (struct megasas_init_frame *)cmd->frame; - memset(init_frame, 0, MEGAMFI_FRAME_SIZE); + memset(init_frame, 0, IOC_INIT_FRAME_SIZE); frame_hdr = &cmd->frame->hdr; frame_hdr->cmd_status = 0xFF;