On Sat, Jun 29, 2019 at 04:40:11PM +0800, yuan linyu wrote:
> when below condition occur, the buf will be dirty again.
> if (result > 1 && ((u8 *)buf)[1] != type) {
> result = -ENODATA;
> continue;
> }
> so caller should check return length which indicate buffer valid or not.
I still f
when below condition occur, the buf will be dirty again.
if (result > 1 && ((u8 *)buf)[1] != type) {
result = -ENODATA;
continue;
}
so caller should check return length which indicate buffer valid or not.
Signed-off-by: yuan linyu
---
drivers/usb/core/message.c | 2 --
1 file cha