diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-01-26 11:26:54 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2021-01-26 15:29:57 +0100 |
commit | a70aa7dc60099bbdcbd6faca42a915d80f31161e (patch) | |
tree | c6adf0810a09023fd72b673f2cbcc09cebbb0ae8 /drivers/usb/serial/xr_serial.c | |
parent | USB: cdc-acm: ignore Exar XR21V141X when serial driver is built (diff) | |
download | linux-a70aa7dc60099bbdcbd6faca42a915d80f31161e.tar.xz linux-a70aa7dc60099bbdcbd6faca42a915d80f31161e.zip |
USB: serial: mos7840: fix error code in mos7840_write()
This should return -ENOMEM instead of 0 if the kmalloc() fails.
Fixes: 3f5429746d91 ("USB: Moschip 7840 USB-Serial Driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/xr_serial.c')
0 files changed, 0 insertions, 0 deletions