diff options
author | Johan Hovold <johan@kernel.org> | 2020-01-17 10:50:22 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-01-17 16:22:45 +0100 |
commit | 4d5ef53f75c22d28f490bcc5c771fcc610a9afa4 (patch) | |
tree | 7629efab2d95c94ae872f2ef411f68a9b35559f8 /drivers/acpi/acpi_apd.c | |
parent | fdb838efa31e1ed9a13ae6ad0b64e30fdbd00570 (diff) | |
download | linux-4d5ef53f75c22d28f490bcc5c771fcc610a9afa4.tar.bz2 |
USB: serial: ch341: handle unbound port at reset_resume
Check for NULL port data in reset_resume() to avoid dereferencing a NULL
pointer in case the port device isn't bound to a driver (e.g. after a
failed control request at port probe).
Fixes: 1ded7ea47b88 ("USB: ch341 serial: fix port number changed after resume")
Cc: stable <stable@vger.kernel.org> # 2.6.30
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/acpi/acpi_apd.c')
0 files changed, 0 insertions, 0 deletions