[PATCH v5] drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close()

2023-09-19 Thread Alexandra Diupina
the hardware driver when the HDLC device is being closed Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: c19b6d246a35 ("drivers/net: support hdlc function for QE-UCC") Signed-off-by: Alexandra Diupina --- v5: do some refactoring as Paolo Abeni and Christ

[PATCH v4] drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close()

2023-09-04 Thread Alexandra Diupina
the hardware driver when the HDLC device is being closed Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: c19b6d246a35 ("drivers/net: support hdlc function for QE-UCC") Signed-off-by: Alexandra Diupina --- v4: undo all the things done prior to hdlc_open() as Jaku

[PATCH v3] fsl_ucc_hdlc: process the result of hold_open()

2023-08-28 Thread Alexandra Diupina
s/net: support hdlc function for QE-UCC") Signed-off-by: Alexandra Diupina --- v3: Fix the commits tree v2: Remove the 'rc' variable (stores the return value of the hdlc_open()) as Christophe Leroy suggested drivers/net/wan/fsl_ucc_hdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH v2] fsl_ucc_hdlc: add a check of the return value from hdlc_open

2023-08-28 Thread Alexandra Diupina
s/net: support hdlc function for QE-UCC") Signed-off-by: Alexandra Diupina --- v2: Remove the 'rc' variable (stores the return value of the hdlc_open()) as Christophe Leroy suggested drivers/net/wan/fsl_ucc_hdlc.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --g

[PATCH] fsl_ucc_hdlc: add a check of the return value from hdlc_open

2023-08-25 Thread Alexandra Diupina
s/net: support hdlc function for QE-UCC") Signed-off-by: Alexandra Diupina --- drivers/net/wan/fsl_ucc_hdlc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 47c2ad7a3e42..cdd9489c712e 100644 --- a/d