]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
USB: serial: mos7840: fix error code in mos7840_write()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 26 Jan 2021 10:26:54 +0000 (13:26 +0300)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Mar 2021 14:09:38 +0000 (15:09 +0100)
commitf23eb15e0398f2dea4b524dfbae3599c126fe902
tree127df1c642c0a33d06f5578c5442497d520aa14d
parent2a8f7a48d89df3f5e2aef583e9b8c8155767e75c
USB: serial: mos7840: fix error code in mos7840_write()

commit a70aa7dc60099bbdcbd6faca42a915d80f31161e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/usb/serial/mos7840.c