[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <27240C0AC20F114CBF8149A2696CBE4A01C3D5AF@SHSMSX101.ccr.corp.intel.com>
Date: Tue, 4 Mar 2014 07:47:58 +0000
From: "Liu, Chuansheng" <chuansheng.liu@...el.com>
To: "balbi@...com" <balbi@...com>
CC: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"mina86@...a86.com" <mina86@...a86.com>,
"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Cohen, David A" <david.a.cohen@...el.com>,
"Zhuang, Jin Can" <jin.can.zhuang@...el.com>,
"Wang, Yu Y" <yu.y.wang@...el.com>
Subject: RE: [PATCH] usb: gadget: return the right length in ffs_epfile_io()
Hello Balbi,
> -----Original Message-----
> From: Felipe Balbi [mailto:balbi@...com]
> Sent: Tuesday, March 04, 2014 12:30 AM
> To: Liu, Chuansheng
> Cc: balbi@...com; gregkh@...uxfoundation.org; mina86@...a86.com;
> linux-usb@...r.kernel.org; linux-kernel@...r.kernel.org; Cohen, David A;
> Zhuang, Jin Can; Wang, Yu Y
> Subject: Re: [PATCH] usb: gadget: return the right length in ffs_epfile_io()
>
> Hi,
>
> On Thu, Feb 27, 2014 at 02:49:31PM +0800, Chuansheng Liu wrote:
> > When the request length is aligned to maxpacketsize, sometimes
> > the return length ret > the user space requested len.
> >
> > At that time, we will use min_t(size_t, ret, len) to limit the
> > size in case of user data buffer overflow.
> >
> > But we need return the min_t(size_t, ret, len) to tell the user
> > space rightly also.
> >
> > Signed-off-by: Chuansheng Liu <chuansheng.liu@...el.com>
> please rebase on my "testing/next" branch
Based on your branch "testing/next", I have sent patch v2 with some ack
and reviewing, thanks.
[PATCH v2] usb: gadget: return the right length in ffs_epfile_io()
Best Regards
Chuansheng
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists