commit | 40752b3eae29f8ca2378e978a02bd6dbeeb06d16 | [log] [tgz] |
---|---|---|
author | Wen Yang <wen.yang99@zte.com.cn> | Wed Dec 26 16:28:30 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Dec 27 16:28:20 2018 -0800 |
tree | 3b1ac8361545cc524bbe6bfc686f35ced71514d2 | |
parent | 92ee77d148bf06d8c52664be4d1b862583fd5c0e [diff] |
net/wan/fsl_ucc_hdlc: Avoid double free in ucc_hdlc_probe() This patch fixes potential double frees if register_hdlc_device() fails. Signed-off-by: Wen Yang <wen.yang99@zte.com.cn> Reviewed-by: Peng Hao <peng.hao2@zte.com.cn> CC: Zhao Qiang <qiang.zhao@nxp.com> CC: "David S. Miller" <davem@davemloft.net> CC: netdev@vger.kernel.org CC: linuxppc-dev@lists.ozlabs.org CC: linux-kernel@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>