diff options
author | Johan Hovold <johan@kernel.org> | 2017-01-03 15:39:52 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-12 10:39:16 (GMT) |
commit | 6ea44fb2183c6e4c4c7888e35498717f9d637c39 (patch) | |
tree | 40520df368cbd14449cef6a9c6c5faae0aca7ed4 /init/calibrate.c | |
parent | e7cf756c89326f8dcee8a109d092d73acc59d72e (diff) | |
download | linux-6ea44fb2183c6e4c4c7888e35498717f9d637c39.tar.xz |
USB: serial: mos7720: fix parport use-after-free on probe errors
commit 75dd211e773afcbc264677b0749d1cf7d937ab2d upstream.
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")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init/calibrate.c')
0 files changed, 0 insertions, 0 deletions