Re: [PATCH] HID: uhid: actually use the err number from userspace

2019-08-14 Thread David Rheinsberg
Hey > > 2) I think you have to filter some of the error codes. For instance, > > if you return one of the -ERESTARTSYS codes, this might cause the > > syscall to restart (if auto-restart is enabled on this context). At > > the same time, this is not *that* bad. It might even be useful for the > >

Re: [PATCH] HID: uhid: actually use the err number from userspace

2019-08-13 Thread Benjamin Tissoires
On Tue, Aug 13, 2019 at 12:50 PM David Rheinsberg wrote: > > Hey > > On Mon, Aug 12, 2019 at 6:21 PM Benjamin Tissoires > wrote: > > > > This can help debugging the situation > > > > Signed-off-by: Benjamin Tissoires > > --- > > > > Hi, > > > > not entirely sure if we can use this in a such simp

Re: [PATCH] HID: uhid: actually use the err number from userspace

2019-08-13 Thread David Rheinsberg
Hey On Mon, Aug 12, 2019 at 6:21 PM Benjamin Tissoires wrote: > > This can help debugging the situation > > Signed-off-by: Benjamin Tissoires > --- > > Hi, > > not entirely sure if we can use this in a such simple way. > > However, this is useful to mimic device behaviour from userspace. > > Che

[PATCH] HID: uhid: actually use the err number from userspace

2019-08-12 Thread Benjamin Tissoires
This can help debugging the situation Signed-off-by: Benjamin Tissoires --- Hi, not entirely sure if we can use this in a such simple way. However, this is useful to mimic device behaviour from userspace. Cheers, Benjamin drivers/hid/uhid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion