The first two patches remove som legacy broken code, and the second two
replaces attach and release with port_probe and remove so that port data is
freed on relase after commit 0998d06310 ("device-core: Ensure drvdata = NULL
when no driver is bound").
Applies to v3.7-rc2 with the following two fixes applied:
http://marc.info/?l=linux-usb&m=135116495111447&w=2
I did the port_probe/remove conversion in two steps in order to facilitate
review, but perhaps they should just be merged. The first one does the
conversion but maintains indentation, which is fixed in the second patch.
Chekpatch only complains about >80 characters lines which were already there to
begin with and I did not care to fix.
Saved the most horrible driver for last, so this should be the final port-data
memory leak fix...
Johan
Johan Hovold (4):
USB: mos7840: remove NULL-urb submission
USB: mos7840: remove invalid disconnect handling
USB: mos7840: fix port-data memory leak
USB: mos7840: fix port_probe flow
drivers/usb/serial/mos7840.c | 495 ++++++++++++++++++-------------------------
1 file changed, 207 insertions(+), 288 deletions(-)
--
1.7.12.4
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html