diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2012-10-10 20:10:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-16 19:25:55 +0200 |
commit | db5c8b524444d4fc6b1f32d368a50a3729e50002 (patch) | |
tree | ed09dfb961fd6c505dc292cf26335e7110db5fe3 /include | |
parent | USB: pl2303: fix port-data memory leak (diff) | |
download | linux-db5c8b524444d4fc6b1f32d368a50a3729e50002.tar.xz linux-db5c8b524444d4fc6b1f32d368a50a3729e50002.zip |
USB: fix port probing and removal in garmin_gps
This patch (as1615) fixes a bug in the Garmin USB serial driver. It
uses attach, disconnect, and release routines to carry out actions
that should be handled by port_probe and port_remove routines, because
they access port-specific data.
The bug causes an oops when the device in unplugged, because the
private data for each port structure now gets erased when the port is
unbound from the driver, resulting in a null-pointer dereference.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported--by: Markus Schauler <mschauler@gmail.com>
Tested-by: Markus Schauler <mschauler@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions