mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
net/wan/fsl_ucc_hdlc: fix muram allocation error
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 <holger.brunck@keymile.com> Cc: Zhao Qiang <qiang.zhao@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a777f715ca
commit
85deed5603
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ static int uhdlc_init(struct ucc_hdlc_private *priv)
|
|||
}
|
||||
|
||||
/* 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) {
|
||||
|
|
Loading…
Reference in a new issue