[PATCH 2/2] usb: host: xhci: Handle the right timeout command

2016-12-05 Thread Baolin Wang
If a command event is found on the event ring during an interrupt, we need to stop the command timer with del_timer(). Since del_timer() can fail if the timer is running and waiting on the xHCI lock, then it maybe get the wrong timeout command in xhci_handle_command_timeout() if host fetched a new

Re: Aw: Re: [PATCH] usb: gadget: udc: core: fix return code of usb_gadget_probe_driver()

2016-12-05 Thread Krzysztof Opasiak
On 12/03/2016 07:47 PM, Felix Hädicke wrote: > Hi, > >> On 12/01/2016 10:44 PM, Felix Hädicke wrote: >>> Hi, >>> Hi, Good catch but I have a few comments to commit message: On 12/01/2016 12:24 AM, Felix Hädicke wrote: > This fixes a regression which was introduced by

Re: XHCI controller does not detect USB key insertion

2016-12-05 Thread Neil Armstrong
Hi Mason, On 12/02/2016 07:00 PM, Mason wrote: > [ Fix incorrect address for Felipe ] > > On 02/12/2016 14:46, Neil Armstrong wrote: > >> On 12/02/2016 11:24 AM, Mason wrote: >> >>> (Sad face) All the documentation I have is in front of me, and nothing >>> is ringing a bell. This is a Sigma Desi

Re: [PATCH 1/1] NET: usb: cdc_ncm: adding MBIM RESET_FUNCTION request and modifying ncm bind common code

2016-12-05 Thread Daniele Palmas
Hi, 2016-11-28 12:23 GMT+01:00 Daniele Palmas : > 2016-11-26 22:17 GMT+01:00 Bjørn Mork : >> Bjørn Mork writes: >> >>> Finally, I found my modems (or at least a number of them) again today. >>> But I'm sorry to say, that the troublesome Huawei E3372h-153 is still >>> giving us a hard time. It do

Re: [PATCH 1/1] input: usbhid: fix improper check

2016-12-05 Thread Oliver Neukum
On Sun, 2016-12-04 at 13:10 +0800, Pan Bian wrote: > From: Pan Bian > > Function hid_post_reset() returns 0 on success, or 1 on failures. It seems like hid_post_reset() is buggy in not returning a proper error code in the failure case. So your diagnosis is right, but the fix is at the wrong plac

Re: [PATCH 1/1] usb: xhci: fix possible wild pointer

2016-12-05 Thread Lu Baolu
Hi, On 12/02/2016 09:39 PM, Mathias Nyman wrote: > On 02.12.2016 04:29, Lu Baolu wrote: >> handle_cmd_completion() frees a command structure which might >> be still referenced by xhci->current_cmd. This might cause >> problem when xhci->current_cmd is accessed after that. >> >> A real-life case co

Re: [PATCH 2/3 v3] xhci: Fix race related to abort operation

2016-12-05 Thread OGAWA Hirofumi
Vincent Pelletier writes: > Problem is, I could not reproduce the "Command completion event does not > match command" error either (which used to happen even on successful > boots), even without your patch. Checking my syslog, I see it did > happen with my previous kernel (vanilla 4.6.0). > Could

Re: [PATCH 0/2] USB: resume time optimization by using spec minimums

2016-12-05 Thread Oliver Neukum
On Sat, 2016-12-03 at 10:05 +0100, Greg KH wrote: > I think these values have grown over the years due to bad devices > being > reported. Look at the kernel logs for details. So we can not reduce > them by default. > > That being said, this is a nice change, but I really hate module > parameters

Re: [PATCH 1/1] USB: serial: option: add support for Telit LE922A PIDs 0x1040, 0x1041

2016-12-05 Thread Johan Hovold
On Thu, Dec 01, 2016 at 04:38:39PM +0100, Daniele Palmas wrote: > This patch adds support for PIDs 0x1040, 0x1041 of Telit LE922A. > > Since the interface positions are the same than the ones used > for other Telit compositions, previous defined blacklists are used. > > Signed-off-by: Daniele Pal

Re: [PATCH 1/2] USB: turn off padding of resume time delays

2016-12-05 Thread Felipe Balbi
Hi, Todd Brandt writes: > Add a module parameter that replaces the USB_RESUME_TIMEOUT > and other hardcoded delay numbers with the USB spec minimums. > By default the patch retains the current values. > > The USB subsystem currently uses heavily padded values for TDRSMDN > and TRSTRCY. This patc

RE: USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-05 Thread Jerry Huang
And I tested USB2.0 disk, with Sriram's 6 patches, it works well. So Just USB3.0 can't work. BTW, The board with USB3.0 DWC3 controller and the USB3.0 disk work well with Linux-4.1.8. Best Regards Jerry Huang -Original Message- From: Jerry Huang Sent: Monday, December 05, 2016 6:11

Re: [PATCH] usb: gadget: udc-core: Rescan pending list on driver unbind

2016-12-05 Thread Marek Szyprowski
Hi Krzysztof, On 2016-12-05 11:09, Krzysztof Opasiak wrote: Since: commit 855ed04a3758 ("usb: gadget: udc-core: independent registration of gadgets and gadget drivers") if we load gadget module but there is no free udc available then it will be stored on a pending gadgets list. $ modprobe g_

Re: AW: add usb option device

2016-12-05 Thread Johan Hovold
On Sat, Dec 03, 2016 at 07:47:11PM +0100, Giuseppe Lippolis wrote: > Dear All, > > > If possible you want to tell the option driver which interfaces to > > bind to (white-listing) rather than specifying which not to bind to > > (black-listing). The latter typically means probing all interfaces,

RE: USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-05 Thread Felipe Balbi
(no top-posting, please) Hi, it helps if you include maintainers for correct drivers. scripts/get_maintainer.pl helps a lot. Jerry Huang writes: > And I tested USB2.0 disk, with Sriram's 6 patches, it works well. So Just > USB3.0 can't work. > > BTW, > The board with USB3.0 DWC3 controller a

[PATCH 1/1 v2] input: usbhid: fix improper return value

2016-12-05 Thread Pan Bian
Function hid_post_reset() should return negative error codes on failures. However, in its implementation, it incorrectly returns 1. This patch fixes the bug, returning proper error codes on failures. Signed-off-by: Pan Bian --- drivers/hid/usbhid/hid-core.c | 6 +++--- 1 file changed, 3 insertio

Re: [PATCH 1/1] NET: usb: cdc_ncm: adding MBIM RESET_FUNCTION request and modifying ncm bind common code

2016-12-05 Thread Bjørn Mork
Daniele Palmas writes: > I went back to this and further checking revealed that MBIM function > reset is not needed and the only problem is related to commit > 48906f62c96cc2cd35753e59310cb70eb08cc6a5 cdc_ncm: toggle altsetting to > force reset before setup, that, however, is mandatory for some H

Re: usb/gadget: GPF in usb_gadget_unregister_driver

2016-12-05 Thread Andrey Konovalov
On Sat, Dec 3, 2016 at 6:13 PM, Greg Kroah-Hartman wrote: > On Sat, Dec 03, 2016 at 05:36:35PM +0100, Andrey Konovalov wrote: >> Hi! >> >> I've got the following error report while running the syzkaller fuzzer. >> >> On commit 3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (Dec 2). >> >> general protect

Re: usb/gadget: GPF in usb_gadget_unregister_driver

2016-12-05 Thread Andrey Konovalov
On Sat, Dec 3, 2016 at 6:31 PM, Felix Hädicke wrote: > Hi, >> Hi! >> >> I've got the following error report while running the syzkaller fuzzer. >> >> On commit 3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (Dec 2). >> >> general protection fault: [#1] SMP KASAN >> Dumping ftrace buffer: >>(ftr

Re: usb/gadget: GPF in usb_gadget_unregister_driver

2016-12-05 Thread Andrey Konovalov
On Sat, Dec 3, 2016 at 6:13 PM, Greg Kroah-Hartman wrote: > On Sat, Dec 03, 2016 at 05:36:35PM +0100, Andrey Konovalov wrote: >> Hi! >> >> I've got the following error report while running the syzkaller fuzzer. >> >> On commit 3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (Dec 2). >> >> general protect

usb/gadget: use-after-free in gadgetfs_setup

2016-12-05 Thread Andrey Konovalov
Hi! I've got the following error report while running the syzkaller fuzzer. On commit 3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (Dec 2). BUG: KASAN: use-after-free in gadgetfs_setup+0x208a/0x20e0 at addr 88003dfe5bf2 Read of size 2 by task syz-executor0/22994 CPU: 3 PID: 22994 Comm: syz-execu

Re: [PATCH 1/1] NET: usb: cdc_ncm: adding MBIM RESET_FUNCTION request and modifying ncm bind common code

2016-12-05 Thread Daniele Palmas
Hi, 2016-12-05 11:10 GMT+01:00 Bjørn Mork : > Daniele Palmas writes: > >> I went back to this and further checking revealed that MBIM function >> reset is not needed and the only problem is related to commit >> 48906f62c96cc2cd35753e59310cb70eb08cc6a5 cdc_ncm: toggle altsetting to >> force reset

Re: USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-05 Thread Mathias Nyman
On 05.12.2016 13:00, Felipe Balbi wrote: (no top-posting, please) Hi, it helps if you include maintainers for correct drivers. scripts/get_maintainer.pl helps a lot. Jerry Huang writes: And I tested USB2.0 disk, with Sriram's 6 patches, it works well. So Just USB3.0 can't work. BTW, The b

Re: usb/gadget: GPF in usb_gadget_unregister_driver

2016-12-05 Thread Krzysztof Opasiak
On 12/05/2016 01:50 PM, Andrey Konovalov wrote: > On Sat, Dec 3, 2016 at 6:13 PM, Greg Kroah-Hartman > wrote: >> On Sat, Dec 03, 2016 at 05:36:35PM +0100, Andrey Konovalov wrote: >>> Hi! >>> >>> I've got the following error report while running the syzkaller fuzzer. >>> >>> On commit 3c49de52d56

Re: [PATCH 1/2] usb: host: xhci: Fix possible wild pointer when handling abort command

2016-12-05 Thread Mathias Nyman
On 05.12.2016 09:51, Baolin Wang wrote: When current command was supposed to be aborted, host will free the command in handle_cmd_completion() function. But it might be still referenced by xhci->current_cmd, which need to set NULL. Signed-off-by: Baolin Wang --- This patch is based on Lu Baolu'

Re: [PATCH 1/3] USB: OHCI: at91: remove useless extern declaration

2016-12-05 Thread Greg Kroah-Hartman
On Sat, Dec 03, 2016 at 03:25:21AM +, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > Remove usb_disabled() extern declaration as it is already declared > as EXPORT_SYMBOL_GPL declaration in drivers/usb/core/usb.c The EXPORT_SYMBOL_GPL() has nothing to do with this, it's the fact

Re: [PATCH 3/3] USB: OHCI: nxp: remove useless extern declaration

2016-12-05 Thread Greg Kroah-Hartman
On Sat, Dec 03, 2016 at 03:25:23AM +, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > Remove usb_disabled() extern declaration as it is already declared > as EXPORT_SYMBOL_GPL declaration. And same thing again... -- To unsubscribe from this list: send the line "unsubscribe linux-

Re: [PATCH 2/3] USB: OHCI: omap: remove useless extern declaration

2016-12-05 Thread Greg Kroah-Hartman
On Sat, Dec 03, 2016 at 03:25:22AM +, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > Remove usb_disabled() and ocpi_enable() extern declaration > as it is already declared as EXPORT_SYMBOL_GPL declaration. Same here, EXPORT_SYMBOL* doesn't matter for stuff like this. thanks, gr

Re: [PATCH 3/3] USB: OHCI: nxp: remove useless extern declaration

2016-12-05 Thread Greg Kroah-Hartman
On Sat, Dec 03, 2016 at 03:25:23AM +, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > Remove usb_disabled() extern declaration as it is already declared > as EXPORT_SYMBOL_GPL declaration. merge this with your first patch please, it belongs with it. -- To unsubscribe from this lis

[PATCH] USB: cdc-acm: add device id for GW Instek AFG-125

2016-12-05 Thread Nathaniel Quillin
Add device-id entry for GW Instek AFG-125, which has a byte swapped bInterfaceSubClass (0x20). Signed-off-by: Nathaniel Quillin --- drivers/usb/class/cdc-acm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index fada988..c5ff13f 100

usb/gadget: warning in dummy_free_request

2016-12-05 Thread Andrey Konovalov
Hi! I've got the following error report while running the syzkaller fuzzer. On commit 3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (Dec 2). WARNING: CPU: 0 PID: 5257 at drivers/usb/gadget/udc/dummy_hcd.c:672 dummy_free_request+0x153/0x170 Kernel panic - not syncing: panic_on_warn set ... usb 2-1: s

Re: [PATCH] USB: cdc-acm: add device id for GW Instek AFG-125

2016-12-05 Thread Oliver Neukum
On Mon, 2016-12-05 at 06:53 -0800, Nathaniel Quillin wrote: > Add device-id entry for GW Instek AFG-125, which has a byte swapped > bInterfaceSubClass (0x20). > > Signed-off-by: Nathaniel Quillin Acked-by: Oliver Neukum -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in

Re: XHCI controller does not detect USB key insertion

2016-12-05 Thread Mason
On 05/12/2016 09:26, Neil Armstrong wrote: > On 12/02/2016 07:00 PM, Mason wrote: > >> On 02/12/2016 14:46, Neil Armstrong wrote: >> >>> On 12/02/2016 11:24 AM, Mason wrote: >>> (Sad face) All the documentation I have is in front of me, and nothing is ringing a bell. This is a Sigma Desi

RE: [PATCH 1/1] net: usb: set error code when usb_alloc_urb fails

2016-12-05 Thread Woojung.Huh
> Signed-off-by: Pan Bian > --- > drivers/net/usb/lan78xx.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c > index db558b8..f33460c 100644 > --- a/drivers/net/usb/lan78xx.c > +++ b/drivers/net/usb/lan78xx.c > @@ -3395,6 +3395,7 @@ s

Re: [PATCH 07/12] usb: sunxi: Uses the resource-managed extcon API when registering extcon notifier

2016-12-05 Thread Bin Liu
On Wed, Nov 30, 2016 at 09:45:03AM +0100, Maxime Ripard wrote: > On Wed, Nov 30, 2016 at 02:57:35PM +0900, Chanwoo Choi wrote: > > This patch just uses the resource-managed extcon API when registering > > the extcon notifier. > > > > Signed-off-by: Chanwoo Choi > > Acked-by: Maxime Ripard It w

Re: [PATCH 2/3] usb: musb: Add a quirk to preserve MUSB_DEVCTL during suspend

2016-12-05 Thread Bin Liu
On Fri, Dec 02, 2016 at 03:23:50PM +0100, Alexandre Bailon wrote: > On 11/29/2016 06:56 PM, Bin Liu wrote: > > On Tue, Nov 29, 2016 at 06:41:04PM +0100, Alexandre Bailon wrote: > >> On 11/29/2016 05:16 PM, Bin Liu wrote: > >>> Hi, > >>> > >>> On Mon, Nov 28, 2016 at 05:26:20PM +0100, Alexandre Bail

ERROR Transfer event for disabled endpoint or incorrect stream ring

2016-12-05 Thread Nicolas Repentin
Hi, Using kernel 4.4 or more (4.8.11-1 on arch), an USB 3.0 external HDD dies all the time when writing on it. Tested on multiple computers, multiples disks, and multiple external disks. Only works on my 3.10 kernel (CentOS7). On dmesg I got this : [ 117.372521] sd 2:0:0:0: [sdb] Synchroniz

RE: [PATCH] usb: gadget: udc: atmel: used managed kasprintf

2016-12-05 Thread David Laight
From: Alexandre Belloni > Sent: 02 December 2016 16:19 > On 02/12/2016 at 15:59:57 +, David Laight wrote : > > From: Alexandre Belloni > > > Sent: 01 December 2016 10:27 > > > Use devm_kasprintf instead of simple kasprintf to free the allocated > > > memory > > > when needed. > > > > s/when ne

USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-05 Thread Jerry Huang
Hi, Guys, 1. I tested the USB3.0 DWC3 with latest Linux-4.9-rc7 on LS1043ardb board. But I got the below errors, this error is returned from dma_supported(dev, mask) while running " dma_set_mask_and_coherent" in function " xhci_plat_probe". ... [0.756166] xhci-hcd: probe of xhci-hcd.0.auto fai

Re: [PATCH 1/1] net: usb: set error code when usb_alloc_urb fails

2016-12-05 Thread David Miller
From: Pan Bian Date: Sat, 3 Dec 2016 19:24:48 +0800 > In function lan78xx_probe(), variable ret takes the errno code on > failures. However, when the call to usb_alloc_urb() fails, its value > will keeps 0. 0 indicates success in the context, which is inconsistent > with the execution result. Th

Re: usb/gadget: use-after-free in gadgetfs_setup

2016-12-05 Thread Alan Stern
On Mon, 5 Dec 2016, Andrey Konovalov wrote: > Hi! > > I've got the following error report while running the syzkaller fuzzer. > > On commit 3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (Dec 2). > > BUG: KASAN: use-after-free in gadgetfs_setup+0x208a/0x20e0 at addr > 88003dfe5bf2 > Read of size

[PATCH] usbip: fix warning in vhci_hcd_probe/lockdep_init_map

2016-12-05 Thread Shuah Khan
vhci_hcd calls sysfs_create_group() with dynamically allocated sysfs attributes triggering the lock-class key not persistent warning. Call sysfs_attr_init() for dynamically allocated sysfs attributes to fix it. vhci_hcd vhci_hcd: USB/IP Virtual Host Controller vhci_hcd vhci_hcd: new USB bus regist

Re: [PATCH] usbip: fix warning in vhci_hcd_probe/lockdep_init_map

2016-12-05 Thread Shuah Khan
Hi Andrey, On 12/05/2016 12:56 PM, Shuah Khan wrote: > vhci_hcd calls sysfs_create_group() with dynamically allocated sysfs > attributes triggering the lock-class key not persistent warning. Call > sysfs_attr_init() for dynamically allocated sysfs attributes to fix it. > > vhci_hcd vhci_hcd: USB/

Re: [PATCH 1/2] Add DT bindings documentation for Synopsys UDC driver

2016-12-05 Thread Rob Herring
On Wed, Nov 30, 2016 at 11:35:09AM +0530, Raviteja Garimella wrote: > This patch adds documentation for Synopsis Designware Cores AHB > Subsystem Device Controller (UDC). > > Signed-off-by: Raviteja Garimella > --- > .../devicetree/bindings/usb/snps,dw-ahb-udc.txt| 29 >

[PATCH FIX] usb: core: usbport: Use proper LED API to fix potential crash

2016-12-05 Thread Rafał Miłecki
From: Rafał Miłecki Calling brightness_set manually isn't safe as some LED drivers don't implement this callback. The best idea is to just use a proper helper which will fallback to the brightness_set_blocking callback if needed. This fixes: [ 1461.761528] Unable to handle kernel NULL pointer de

Re: [PATCH 07/12] usb: sunxi: Uses the resource-managed extcon API when registering extcon notifier

2016-12-05 Thread Chanwoo Choi
On 2016년 12월 06일 01:32, Bin Liu wrote: > On Wed, Nov 30, 2016 at 09:45:03AM +0100, Maxime Ripard wrote: >> On Wed, Nov 30, 2016 at 02:57:35PM +0900, Chanwoo Choi wrote: >>> This patch just uses the resource-managed extcon API when registering >>> the extcon notifier. >>> >>> Signed-off-by: Chanwoo

Re: [PATCH 01/12] phy: rcar-gen3-usb2: Replace the deprecated extcon API

2016-12-05 Thread Chanwoo Choi
Hi Kishon, Could you review and pick the patch1/2 for phy driver? Best Regards, Chanwoo Choi On 2016년 11월 30일 14:57, Chanwoo Choi wrote: > This patch replaces the deprecated extcon API as following: > - extcon_set_cable_state_() -> extcon_set_state_sync() > > Signed-off-by: Chanwoo Choi > ---

Re: [PATCH 03/12] power_supply: axp288_charger: Replace the extcon API

2016-12-05 Thread Chanwoo Choi
Hi Sebastian, Could you please review and pick the patch3/4 for power-supply driver? Best Regards, Chanwoo Choi On 2016년 11월 30일 14:57, Chanwoo Choi wrote: > This patch uses the resource-managed extcon API for extcon_register_notifier() > and replaces the deprecated extcon API as following: > -

[PATCH] usbip: add missing compile time generated files to .gitignore

2016-12-05 Thread Shuah Khan
Add the following files to .gitignore compile libsrc/libusbip_la-sysfs_utils.lo libsrc/libusbip_la-usbip_device_driver.lo libsrc/libusbip_la-usbip_host_common.lo Signed-off-by: Shuah Khan --- tools/usb/usbip/.gitignore | 4 1 file changed, 4 insertions(+) diff --git a/tools/usb/usbip/.git

RE: [PATCH 12/12] usb: renesas_usbhs: Replace the deprecated extcon API

2016-12-05 Thread Yoshihiro Shimoda
Hi, > From: Chanwoo Choi > Sent: Wednesday, November 30, 2016 2:58 PM > > This patch replaces the deprecated extcon API as following: > - extcon_get_cable_state_() -> extcon_get_state() > > Signed-off-by: Chanwoo Choi Thank you for the patch! Acked-by: Yoshihiro Shimoda Best regards, Yoshih

RE: [PATCH 01/12] phy: rcar-gen3-usb2: Replace the deprecated extcon API

2016-12-05 Thread Yoshihiro Shimoda
Hi, > From: Chanwoo Choi > Sent: Wednesday, November 30, 2016 2:57 PM > > This patch replaces the deprecated extcon API as following: > - extcon_set_cable_state_() -> extcon_set_state_sync() > > Signed-off-by: Chanwoo Choi Thank you for the patch! Acked-by: Yoshihiro Shimoda Best regards, Y

RE: [PATCH v13 05/10] usbip: exporting devices: modifications to daemon

2016-12-05 Thread fx IWATA NOBUO
Hello, > > usbip_driver_ has widely used as function names and file > > names for host side abstraction. > > If they were usbip_host_, I can use usbip_driver_open/close > > for both host(stub/vudc) and vhci. > > usbip_host() is not correct name to use for both stub and vudc as from > USB point of

Re: usb:xhci: support disable usb2 LPM Remote Wakeup

2016-12-05 Thread Thang Q. Nguyen
Hi, Do you have any feedback on this? Thanks, Thang Q. Nguyen On Sun, Dec 4, 2016 at 7:42 PM, Thang Q. Nguyen wrote: > From: Thang Nguyen > > As per USB 2.0 link power management addendum ECN, table 1-2, page 4, > device or host initiated via resume signaling; device-initiated resumes > can be

Re: usb:xhci: support disable usb2 LPM Remote Wakeup

2016-12-05 Thread Greg Kroah-Hartman
On Tue, Dec 06, 2016 at 01:59:00PM +0700, Thang Q. Nguyen wrote: > Hi, > Do you have any feedback on this? > > Thanks, > Thang Q. Nguyen > > On Sun, Dec 4, 2016 at 7:42 PM, Thang Q. Nguyen wrote: It has been 1 day, please relax, wait, and be patient. If after 2 weeks there has not been a respo

Re: [PATCH] USB: OHCI: pxa27x: fix warnings and errors

2016-12-05 Thread Greg Kroah-Hartman
On Mon, Dec 05, 2016 at 10:18:58PM +, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > This patch will fix the checkpatch.pl warnings and errors. what warnings and errors? Please always be specific. And don't send a single patch to fix everything up, break it up into logical type

Re: [PATCH] USB: OHCI: pxa27x: fix warnings and errors

2016-12-05 Thread Greg Kroah-Hartman
On Mon, Dec 05, 2016 at 10:18:58PM +, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > This patch will fix the checkpatch.pl warnings and errors. > > Signed-off-by: Manjunath Goudar > Cc: Alan Stern > Cc: Greg Kroah-Hartman > Cc: linux-usb@vger.kernel.org > Cc: linux-ker...@vger

[PATCH] usb: gadgetfs: restrict upper bound on device configuration size

2016-12-05 Thread Greg Kroah-Hartman
Andrey Konovalov reported that we were not properly checking the upper limit before of a device configuration size before calling memdup_user(), which could cause some problems. So set the upper limit to PAGE_SIZE * 4, which should be good enough for all devices. Reported-by: Andrey Konovalov Cc