Re: [PATCH] usb: musb_dsps: fix res_name length

2012-10-17 Thread Daniel Mack
On 17.10.2012 20:47, David Binderman wrote: >> sprintf(res_name, "port%d-mode", id); >> >> Hence, res_name must be at least 11 characters long in order to store >> the name including the terminating '\0'. > > Your patch seems plausible if the number of instances is 9 or less: > indeed there curren

RE: [PATCH] usb: musb_dsps: fix res_name length

2012-10-17 Thread David Binderman
Hello there, > sprintf(res_name, "port%d-mode", id); > > Hence, res_name must be at least 11 characters long in order to store > the name including the terminating '\0'. Your patch seems plausible if the number of instances is 9 or less: indeed there currently might only be 2, if I read the so