Re: [PATCH] usb: gadget: f_fs: Fix loop variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 26, 2015 at 07:46:42AM +0100, Robert Baldyga wrote:
> On 01/23/2015 10:18 PM, Mario Schuknecht wrote:
> > Use if-loop variable 'epfile' instead of start variable 'epfiles'. Now the
> > correct endpoint file name is stored.
> > 
> > Signed-off-by: Mario Schuknecht <mario.schuknecht@xxxxxxxxxxxxxxx>
> > ---
> >  drivers/usb/gadget/function/f_fs.c | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c
> > index 63314ed..8832a46 100644
> > --- a/drivers/usb/gadget/function/f_fs.c
> > +++ b/drivers/usb/gadget/function/f_fs.c
> > @@ -1581,10 +1581,10 @@ static int ffs_epfiles_create(struct ffs_data *ffs)
> >  		mutex_init(&epfile->mutex);
> >  		init_waitqueue_head(&epfile->wait);
> >  		if (ffs->user_flags & FUNCTIONFS_VIRTUAL_ADDR)
> > -			sprintf(epfiles->name, "ep%02x", ffs->eps_addrmap[i]);
> > +			sprintf(epfile->name, "ep%02x", ffs->eps_addrmap[i]);
> >  		else
> > -			sprintf(epfiles->name, "ep%u", i);
> > -		epfile->dentry = ffs_sb_create_file(ffs->sb, epfiles->name,
> > +			sprintf(epfile->name, "ep%u", i);
> > +		epfile->dentry = ffs_sb_create_file(ffs->sb, epfile->name,
> >  						 epfile,
> >  						 &ffs_epfile_operations);
> >  		if (unlikely(!epfile->dentry)) {
> > 
> 
> Acked-by: Robert Baldyga <r.baldyga@xxxxxxxxxxx>

I don't have original patch and I was never in Cc, please resend.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux