]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit377906858e508fe2b5d983741bd7b8ad611c92e5
treeb83137227d318a506a520f6c7af1daca6c11ad3a
parent3e3faf7b1ef72eb22c03ef6351fd0d6274197243
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