Re: [PATCH] usb: hub: take hub->hdev reference when processing from eventlist

2014-09-10 Thread Greg KH
ev) > > kref_put(&hub->kref, hub_release) > > > > No reports from slub_debug during lastnight's tests. > > > > -->8-- -->8-- > > > > From 5f169da5fbdb6374dc23e8202a7a06fd27196a07 Mon Sep 17 00:00:00 2001 > > From: Joe Lawrence >

Re: [PATCH] usb: hub: take hub->hdev reference when processing from eventlist

2014-09-10 Thread Alan Stern
- -->8-- > > From 5f169da5fbdb6374dc23e8202a7a06fd27196a07 Mon Sep 17 00:00:00 2001 > From: Joe Lawrence > Date: Tue, 9 Sep 2014 17:24:41 -0400 > Subject: [PATCH] usb: hub: take hub->hdev reference when processing from > eventlist > > During surprise device hotplug re

[PATCH] usb: hub: take hub->hdev reference when processing from eventlist

2014-09-10 Thread Joe Lawrence
1 -0400 Subject: [PATCH] usb: hub: take hub->hdev reference when processing from eventlist During surprise device hotplug removal tests, it was observed that hub_events may try to call usb_lock_device on a device that has already been freed. Protect the usb_device by taking out a reference (under