Pull USB fixes from Greg KH: "Here are some small USB fixes for a bunch of warnings/errors that the syzbot has been finding with it's new-found ability to stress-test the USB layer. All of these are tiny, but fix real issues, and are marked for stable as well. All of these have had lots of testing in linux-next as well" * tag 'usb-5.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: USB: w1 ds2490: Fix bug caused by improper use of altsetting array USB: yurex: Fix protection fault after device removal usb: usbip: fix isoc packet num validation in get_pipe USB: core: Fix bug caused by duplicate interface PM usage counter USB: dummy-hcd: Fix failure to give back unlinked URBs USB: core: Fix unterminated string returned by usb_string()
Showing the changes to include/linux (1 of 10 files). Show all
Unified · Split
| @@ -200,7 +200,6 @@ usb_find_last_int_out_endpoint(struct usb_host_interface *alt, · 199 unmodified lines | ||
| 200 | 200 | * @dev: driver model's view of this device |
| 201 | 201 | * @usb_dev: if an interface is bound to the USB major, this will point |
| 202 | 202 | * to the sysfs representation for that device. |
| 203 | − * @pm_usage_cnt: PM usage counter for this interface | |
| 204 | 203 | * @reset_ws: Used for scheduling resets from atomic context. |
| 205 | 204 | * @resetting_device: USB core reset the device, so use alt setting 0 as |
| 206 | 205 | * current; needs bandwidth alloc after reset. |
| @@ -257,7 +256,6 @@ struct usb_interface { · 50 unmodified lines | ||
| 257 | 256 | |
| 258 | 257 | struct device dev; /* interface specific device info */ |
| 259 | 258 | struct device *usb_dev; |
| 260 | − atomic_t pm_usage_cnt; /* usage counter for autosuspend */ | |
| 261 | 259 | struct work_struct reset_ws; /* for resets in atomic context */ |
| 262 | 260 | }; |
| 263 | 261 | #define to_usb_interface(d) container_of(d, struct usb_interface, dev) |