Re: [GIT PATCH] TTY/serial driver patches for .40
From: Peter Hüwe
Date: Mon May 30 2011 - 18:37:26 EST
Am Dienstag 31 Mai 2011, 00:04:24 schrieb Peter Hüwe:
> Am Freitag 27 Mai 2011, 03:00:21 schrieb Greg KH:
> > > > Felipe Balbi (1):
> > > > tty: make receive_buf() return the amout of bytes received
> > I think I'll be reverting this one.
> maybe that's related to receive_buf returning an unsigned int, which is
> obviously incompatible with -ENODEV, -EINVAL and the likes, which most of
> the functions now return in case of error.
> And unfortunately the return value is unfortunately not checked for errors
> either - so the amount is totally screwed then ;)
>
> I could create a patch if desired.
@Guennadi:
Maybe you could try this patch?
I know it's far from perfect ;)