[PATCH] net: wan: fix error return code of uhdlc_init()

2021-03-07 Thread Jia-Ju Bai
When priv->rx_skbuff or priv->tx_skbuff is NULL, no error return code of uhdlc_init() is assigned. To fix this bug, ret is assigned with -ENOMEM in these cases. Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/net/wan/fsl_ucc_hdlc.c | 8 ++-- 1 file changed, 6 insertions

[BUG] drivers/tty/hvc: a possible sleep-in-atomic bug in xen_pv_console_init

2017-12-11 Thread Jia-Ju Bai
bug is found by my static analysis tool (DSAC) and my code review. Thanks, Jia-Ju Bai