net/wan/fsl_ucc_hdlc: fix incorrect memory allocation
authorHolger Brunck <holger.brunck@keymile.com>
Wed, 17 May 2017 15:24:35 +0000 (17:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 14:28:38 +0000 (10:28 -0400)
commit5b8aad93c52bdda6a731cab8497998cfa0f2df07
tree3e502105c01c399d928becab0497e9b74e9941ff
parent10515db509780224bf48ea189cff989ebd01dd0e
net/wan/fsl_ucc_hdlc: fix incorrect memory allocation

We need space for the struct qe_bd and not for a pointer to this struct.

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>
drivers/net/wan/fsl_ucc_hdlc.c