commit | 3f5bbe24acc4bd29832c3e4c77594d28590c70da | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Jan 26 13:26:54 2021 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Mar 03 18:22:51 2021 +0100 |
tree | 92228e92ec574ca41ec0b2b234e0bbf2508758d9 | |
parent | 68deb52948e1bde0c951e1fa842c8426d0088e2d [diff] |
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>