diff options
author | Johan Hovold <johan@kernel.org> | 2017-01-03 16:39:52 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-01-04 10:37:19 +0100 |
commit | 75dd211e773afcbc264677b0749d1cf7d937ab2d (patch) | |
tree | 78c903f206950fd0f2573e95ac9e6c98e1f89e01 /lib/fault-inject.c | |
parent | USB: serial: mos7720: fix use-after-free on probe errors (diff) | |
download | linux-75dd211e773afcbc264677b0749d1cf7d937ab2d.tar.xz linux-75dd211e773afcbc264677b0749d1cf7d937ab2d.zip |
USB: serial: mos7720: fix parport use-after-free on probe errors
Do not submit the interrupt URB until after the parport has been
successfully registered to avoid another use-after-free in the
completion handler when accessing the freed parport private data in case
of a racing completion.
Fixes: b69578df7e98 ("USB: usbserial: mos7720: add support for parallel
port on moschip 7715")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions