diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-21 00:12:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-21 00:12:25 -0400 |
commit | 19e36ad292ab24980db64a5ff17973d3118a8fb9 (patch) | |
tree | 175715409a689814e5cd425a98f2d2d47f82addf /drivers/usb/core/devio.c | |
parent | e10abc629f38efd9b6936cf3612583cc846104d9 (diff) | |
parent | 60d5794fe5a50d02f4a0df84b45910a4dfa8b487 (diff) |
Merge tag 'usb-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB updates from Greg KH:
"Here's the big pull request for USB and PHY drivers for 4.7-rc1
Full details in the shortlog, but it's the normal major gadget driver
updates, phy updates, new usbip code, as well as a bit of lots of
other stuff.
All have been in linux-next with no reported issues"
* tag 'usb-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (164 commits)
USB: serial: ti_usb_3410_5052: add MOXA UPORT 11x0 support
USB: serial: fix minor-number allocation
USB: serial: quatech2: fix use-after-free in probe error path
USB: serial: mxuport: fix use-after-free in probe error path
USB: serial: keyspan: fix debug and error messages
USB: serial: keyspan: fix URB unlink
USB: serial: keyspan: fix use-after-free in probe error path
USB: serial: io_edgeport: fix memory leaks in probe error path
USB: serial: io_edgeport: fix memory leaks in attach error path
usb: Remove unnecessary space before operator ','.
usb: Remove unnecessary space before open square bracket.
USB: FHCI: avoid redundant condition
usb: host: xhci-rcar: Avoid long wait in xhci_reset()
usb/host/fotg210: remove dead code in create_sysfs_files
usb: wusbcore: Do not initialise statics to 0.
usb: wusbcore: Remove space before ',' and '(' .
USB: serial: cp210x: clean up CRTSCTS flag code
USB: serial: cp210x: get rid of magic numbers in CRTSCTS flag code
USB: serial: cp210x: fix hardware flow-control disable
USB: serial: option: add even more ZTE device ids
...
Diffstat (limited to 'drivers/usb/core/devio.c')
-rw-r--r-- | drivers/usb/core/devio.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 52c4461dfccd..e9f5043a2167 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -216,7 +216,7 @@ static void usbdev_vm_close(struct vm_area_struct *vma) | |||
216 | dec_usb_memory_use_count(usbm, &usbm->vma_use_count); | 216 | dec_usb_memory_use_count(usbm, &usbm->vma_use_count); |
217 | } | 217 | } |
218 | 218 | ||
219 | struct vm_operations_struct usbdev_vm_ops = { | 219 | static struct vm_operations_struct usbdev_vm_ops = { |
220 | .open = usbdev_vm_open, | 220 | .open = usbdev_vm_open, |
221 | .close = usbdev_vm_close | 221 | .close = usbdev_vm_close |
222 | }; | 222 | }; |
@@ -1316,10 +1316,11 @@ static int proc_getdriver(struct usb_dev_state *ps, void __user *arg) | |||
1316 | 1316 | ||
1317 | static int proc_connectinfo(struct usb_dev_state *ps, void __user *arg) | 1317 | static int proc_connectinfo(struct usb_dev_state *ps, void __user *arg) |
1318 | { | 1318 | { |
1319 | struct usbdevfs_connectinfo ci = { | 1319 | struct usbdevfs_connectinfo ci; |
1320 | .devnum = ps->dev->devnum, | 1320 | |
1321 | .slow = ps->dev->speed == USB_SPEED_LOW | 1321 | memset(&ci, 0, sizeof(ci)); |
1322 | }; | 1322 | ci.devnum = ps->dev->devnum; |
1323 | ci.slow = ps->dev->speed == USB_SPEED_LOW; | ||
1323 | 1324 | ||
1324 | if (copy_to_user(arg, &ci, sizeof(ci))) | 1325 | if (copy_to_user(arg, &ci, sizeof(ci))) |
1325 | return -EFAULT; | 1326 | return -EFAULT; |