[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20180218070635.27479-1-quytelda@tamalin.org>
Date: Sat, 17 Feb 2018 23:06:35 -0800
From: Quytelda Kahja <quytelda@...alin.org>
To: gregkh@...uxfoundation.org, jonathankim@...semi.com,
deanahn@...semi.com, johan@...nel.org
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Quytelda Kahja <quytelda@...alin.org>
Subject: [PATCH] Staging: gdm724x: mux: Check return value of register_lte_tty_driver().
Check the return value of of the register_lte_tty_driver() call in the
module initialization function.
Signed-off-by: Quytelda Kahja <quytelda@...alin.org>
---
drivers/staging/gdm724x/gdm_mux.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/gdm724x/gdm_mux.c b/drivers/staging/gdm724x/gdm_mux.c
index 996b1f538aae..63921bad519e 100644
--- a/drivers/staging/gdm724x/gdm_mux.c
+++ b/drivers/staging/gdm724x/gdm_mux.c
@@ -657,7 +657,11 @@ static struct usb_driver gdm_mux_driver = {
static int __init gdm_usb_mux_init(void)
{
- register_lte_tty_driver();
+ int ret;
+
+ ret = register_lte_tty_driver();
+ if (ret)
+ return ret;
return usb_register(&gdm_mux_driver);
}
--
2.16.1
Powered by blists - more mailing lists