wan/fsl_ucc_hdlc: avoid possible NULL pointer dereference
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 31 Jul 2016 11:14:23 +0000 (13:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2016 20:32:52 +0000 (13:32 -0700)
commit8c57a3a7fab4c6be2634da4084fb33dec02c8872
treeb83137227d318a506a520f6c7af1daca6c11ad3a
parent4fb482f73703d69ce23f9ddfa1c55acdb3cf49a6
wan/fsl_ucc_hdlc: avoid possible NULL pointer dereference

All assignments to components of priv should only
occur after the check if prif is NULL.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/fsl_ucc_hdlc.c