commit | 82b9cb4d3f062aa80f15a4f2a2f567b93e2d0739 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Wed Jul 04 17:02:17 2018 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jul 17 11:39:26 2018 +0200 |
tree | 53e97222b893cd0de74eaa59b73c9d1e9d53dbdf | |
parent | 90f2a76ccd37cce2530df49335bcea6cd0e23797 [diff] |
USB: serial: mos7840: fix status-register error handling commit 794744abfffef8b1f3c0c8a4896177d6d13d653d upstream. Add missing transfer-length sanity check to the status-register completion handler to avoid leaking bits of uninitialised slab data to user space. Fixes: 3f5429746d91 ("USB: Moschip 7840 USB-Serial Driver") Cc: stable <stable@vger.kernel.org> # 2.6.19 Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>