commit | bcac85cabaf7f2bc228ae563f1fc479146f1d86a | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Jan 26 13:26:54 2021 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 04 11:38:24 2021 +0100 |
tree | 25d23e85e08f119677144b4287ca50ea52f254af | |
parent | 11fd58946e03ecea28a42af7acfca3f0b1c1a4fe [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>