Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2280919ybl; Thu, 19 Dec 2019 10:57:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzNZVZWQyv20IQd2UwtlwL6rEkgYSrT1hya/w24Oo/S+hZ5dIDF10DD41tkBEDMI92qkmJO X-Received: by 2002:a9d:23b5:: with SMTP id t50mr9923787otb.122.1576781835388; Thu, 19 Dec 2019 10:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576781835; cv=none; d=google.com; s=arc-20160816; b=E3UkgfPhTyIg7SdwE6QxMd8w5qNmNaCN1qWsd6dntplyyFfNeoJZbJ9tJWJnp2SjgP +zTE9qAFICtruwgfrPXwcadvXThU1bHY1ETbrKE5XDKILInEnsIUadstSAYQpOCti82D 9Z0RE6FPrzz10x75uCScvo1b4fsN0zf4kCEsuIw+oumLXd5tjujmLQFblwB3oETHH8Iq HRpuH1O7R2jC0EzAcprHPPtTQJxtGdMaWG2hSvuV+G+PmUJzT6zi1HB3hf3JHhkbibpR nDxQWwogG/Zh/t383uwSClWNOVeR911KQ5re2UyqBfshHcr14jlYqTeifOrjYET/UGPo gPIQ== 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=ACpsgbVCEPp06XUhpIIJUggEcytT+HT/cKcUFzvx280=; b=ZjLRVuHXmzt7outb+voESnKN2pSEmOw/nnKN1m8ItSQIV0zgNYpTkfe+iXHga783P5 H7BK7x1Ms1+yVY2uhEjI9A2THXGxsca1jiY4rtnu6kCE9vNAll3hriCWQTVG9aUfxh7w EeXxLmmfPirPP9+1d0cYg3Ci7ygsBrPEObOTYCRGVEssuaSh3E3Z0jxtW4Sw+syhCicH LjmMjMsnAq27wu4k/y3Jds1Jz0yqq+Gr51ignAkWycVAqcIScpDNt/oxCJY4RE4uzW7I PxqD3NWqk0Ks9QQ86q/6vl9eKzJopndA/iSS8YSGchsMak2QvUZ72r0Fs7Ir5GhbzUC7 iLWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="G9CS4O/N"; 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 c21si3827719otr.223.2019.12.19.10.57.03; Thu, 19 Dec 2019 10:57:15 -0800 (PST) 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="G9CS4O/N"; 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 S1730746AbfLSSz5 (ORCPT + 99 others); Thu, 19 Dec 2019 13:55:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:52122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730738AbfLSSzx (ORCPT ); Thu, 19 Dec 2019 13:55:53 -0500 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 3BA8324689; Thu, 19 Dec 2019 18:55:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576781752; bh=7K7fB04p0JMzjWIQ0S0tHZBBYEMuF7Tj4YxhfcvKRbs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G9CS4O/NSR025t/twJqowYElezpq4MjyXTAhYb9wBdcEeB6a3hh+IPJCm4kBSn3Jy 7p6bsVhwkdTp9TgGJIUIi1KAzpuKk23hUHjKjWM0tjhQ6r0VSWmtAFRf+koZDIRaJP 8QM1s3oQplVo0UOKuOqyxUQHktyQSB+GWQV3JkP8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Hernandez , Himanshu Madhani , "Martin K. Petersen" Subject: [PATCH 5.4 65/80] scsi: qla2xxx: Fix incorrect SFUB length used for Secure Flash Update MB Cmd Date: Thu, 19 Dec 2019 19:34:57 +0100 Message-Id: <20191219183137.458270274@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183031.278083125@linuxfoundation.org> References: <20191219183031.278083125@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: Michael Hernandez commit c868907e1ac6a08a17f8fa9ce482c0a496896e9e upstream. SFUB length should be in DWORDs when passed to FW. Fixes: 3f006ac342c03 ("scsi: qla2xxx: Secure flash update support for ISP28XX") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20191203223657.22109-4-hmadhani@marvell.com Signed-off-by: Michael Hernandez Signed-off-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_sup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/qla2xxx/qla_sup.c +++ b/drivers/scsi/qla2xxx/qla_sup.c @@ -2897,7 +2897,7 @@ qla28xx_write_flash_data(scsi_qla_host_t "Sending Secure Flash MB Cmd\n"); rval = qla28xx_secure_flash_update(vha, 0, region.code, buf_size_without_sfub, sfub_dma, - sizeof(struct secure_flash_update_block)); + sizeof(struct secure_flash_update_block) >> 2); if (rval != QLA_SUCCESS) { ql_log(ql_log_warn, vha, 0xffff, "Secure Flash MB Cmd failed %x.", rval);