summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/usb-wwan.h
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-10-25 10:29:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-25 09:37:13 -0700
commitf79b2d0fe81eecb412dc48e87a119afc690da8e9 (patch)
tree2f5ff17fa309a58dc3745ffb9560ce134bd88f12 /drivers/usb/serial/usb-wwan.h
parent5260e458f5eff269a43e4f1e9c47186c57b88ddb (diff)
downloadop-kernel-dev-f79b2d0fe81eecb412dc48e87a119afc690da8e9.zip
op-kernel-dev-f79b2d0fe81eecb412dc48e87a119afc690da8e9.tar.gz
USB: keyspan: fix NULL-pointer dereferences and memory leaks
Fix NULL-pointer dereference at release by moving port data allocation and deallocation to port_probe and port_remove. Fix NULL-pointer dereference at disconnect by stopping port urbs at port_remove. Since commit 0998d0631001288 (device-core: Ensure drvdata = NULL when no driver is bound) the port private data is no longer accessible at disconnect or release. Note that this patch also fixes port and interface-data memory leaks in the error path of attach should port initialisation fail for any port. Compile-only tested. Cc: <stable@vger.kernel.org> Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/usb-wwan.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud