diff options
author | Quytelda Kahja <quytelda@tamalin.org> | 2018-02-17 23:06:35 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-19 18:06:35 +0100 |
commit | a4b0330ec145909427d79556ac139c04517e81bb (patch) | |
tree | 47ca52be30b3c2b93fccd4b721d6347875906d97 /drivers | |
parent | e21981b571cec7b89256bfe7e61a5198ac380895 (diff) | |
download | linux-a4b0330ec145909427d79556ac139c04517e81bb.tar.bz2 |
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@tamalin.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/gdm724x/gdm_mux.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |