[PATCH] usb: renesas_usbhs: constify usbhs_pkt_handle structures

2015-12-27 Thread Julia Lawall
The usbhs_pkt_handle structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/renesas_usbhs/fifo.c | 20 ++-- drivers/usb/renesas_usbhs/fifo.h | 20 ++--

[PATCH] USB: cp210x: add ID for ELV Marble Sound Board 1.

2015-12-27 Thread Oliver Freyermuth
Dear kernel-hackers, this adds the PID and VID for the ELV Marble Sound Board which uses a CP2102 as USB-serial converter. I hope linux-usb is the correct list for this patch, otherwise please redirect me. Details about this device, for the interested (German):

RE: [PATCH] usb: gadget: acm: set notify_req to NULL after freed to avoid double free

2015-12-27 Thread Du, Changbin
> On 12/26/2015 04:57 AM, changbin...@intel.com wrote: > > From: "Du, Changbin" > > > > If acm_bind fails before allocate notification and acm->notify_req is > > not set to NULL after freed last time, double free will happen. > > Looks good to me. > > Similar problem can

usb: dwc2: regression on bcm2835 after commit 09c96980dc72

2015-12-27 Thread Stefan Wahren
Hi John, the commit 09c96980dc72 ("usb: dwc2: Add functions to set and clear force mode") in Felipe's USB repo causes a regression on Raspberry Pi B which prevents the probing of the dwc2 driver. I attached a patch which fixes the regression but i'm not sure that's the right way. Regards Stefan

Re: [PATCH] usb: gadget: acm: set notify_req to NULL after freed to avoid double free

2015-12-27 Thread Robert Baldyga
On 12/26/2015 04:57 AM, changbin...@intel.com wrote: > From: "Du, Changbin" > > If acm_bind fails before allocate notification and acm->notify_req is > not set to NULL after freed last time, double free will happen. Looks good to me. Similar problem can occur with

Re: MX28 with hub cannot reset

2015-12-27 Thread Peter Chen
On Fri, Dec 25, 2015 at 03:41:32PM +0100, Stefan Wahren wrote: > Hi, > > > Peter Chen hat am 25. Dezember 2015 um 07:22 > > geschrieben: > > > > > > On Thu, Dec 24, 2015 at 09:42:58AM +0100, Stefan Wahren wrote: > > > Hi, > > > > > > > Peter Chen

[PATCH v2] usb: gadget: fix double mem free for usb_request caused by wild pointers

2015-12-27 Thread changbin . du
From: "Du, Changbin" acm, ecm, hid, ncm, phonet, rndis and uvc functions all have double memory free issue. Set pointers to NULL after freed to avoid this. Here explain how it happen on acm function, others has analogical case. If acm_bind fails before allocate