Received: by 10.192.165.156 with SMTP id m28csp1134785imm; Wed, 11 Apr 2018 13:05:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx48XNf5TDm8lzN3L29l5pmNPifHzLhdo4hAIIzirzlCkXI0zTURkqDWyedbunUGBlLEJpfrB X-Received: by 2002:a17:902:ba94:: with SMTP id k20-v6mr6556347pls.193.1523477115715; Wed, 11 Apr 2018 13:05:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523477115; cv=none; d=google.com; s=arc-20160816; b=QrkcVJoADiWjZ6hVrObllok6x+u0Jdfrqy3Caz73T+2BTXRUYdZnhYIWNFtpA4kE0d OOmHpI7rx6zeQLOsm+79HHKVBOoyalusoA4Fm8bEUIzMU82CgGykAnkm2iZOA1526O57 bzo/cw3ZvqWSmRoqX3Bb0jV5GRhOiG5tdbhLvUPoXD9c1K2TI0xQf14RCAB1eL6ukDvM Hkz9JKhIStKmyfZJUo+y13CiKw/fPvt/0robYHv7536MShH0W+o/lRYDBYM1rVVKEWuh TIa74C/R/qdB1VKIW7xA3bA2HMRLx52Y/T9fQq1ree5STVq+LiIm1OQSBhO9MWy+LzIC rWMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=rqxEoWrCrs9Cezg26grIr70SAx2u9gGWTNj85xJ4r4c=; b=EyDJpwJXB6MSDHnEkAtocDeUZVnTqfTi+sEMs0NC/74zF7iKYKTieegvQJH22jvpEP 7EZEODrAE6gpQPZlTWog4miwgLrbJT3PEkAliu4HvclEbSYnGE6VW8KNSpG1oXzGODcV MOQksvvE1sWx8+NkUxx7GmEwPbS9VKp+QD7PVYFK3Z7y3t5eOs4VPTFeVpOLQqh+ru8T CWtXLoQ/yFIOXqQDp2bonuVvM/53vhedT216VrFoW/T3zURj4W+gXV+Zs4iY0dfQOLEU Pu1AinKqJlzK3aELB1OLGpPBf5Te8NfPBmbfaZGiqtGAMI15i8ArMkLbok0YluMN2Ms+ sENQ== ARC-Authentication-Results: i=1; mx.google.com; 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 w12si116946pgc.818.2018.04.11.13.04.39; Wed, 11 Apr 2018 13:05:15 -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; 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 S932686AbeDKUA1 (ORCPT + 99 others); Wed, 11 Apr 2018 16:00:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35828 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755884AbeDKS4c (ORCPT ); Wed, 11 Apr 2018 14:56:32 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B017639; Wed, 11 Apr 2018 18:56:31 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Holger Brunck , Zhao Qiang , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 090/310] net/wan/fsl_ucc_hdlc: fix muram allocation error Date: Wed, 11 Apr 2018 20:33:49 +0200 Message-Id: <20180411183626.121210585@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180411183622.305902791@linuxfoundation.org> References: <20180411183622.305902791@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Holger Brunck [ Upstream commit 85deed56032b6c98b541895bfda9bdd74f6ed987 ] sizeof(priv->ucc_pram) is 4 as it is the size of a pointer, but we want to reserve space for the struct ucc_hdlc_param. Signed-off-by: Holger Brunck Cc: Zhao Qiang Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/wan/fsl_ucc_hdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c @@ -158,7 +158,7 @@ static int uhdlc_init(struct ucc_hdlc_pr } /* Alloc parameter ram for ucc hdlc */ - priv->ucc_pram_offset = qe_muram_alloc(sizeof(priv->ucc_pram), + priv->ucc_pram_offset = qe_muram_alloc(sizeof(struct ucc_hdlc_param), ALIGNMENT_OF_UCC_HDLC_PRAM); if (priv->ucc_pram_offset < 0) {