Re: [PATCHv2] HID:hid-logitech: Prevent possibility of infinite loop when using /sys interface

2014-08-15 Thread Jiri Kosina
On Thu, 14 Aug 2014, Simon Wood wrote: > If the device data is not accessible for some reason, returning 0 will cause > the call to be > continuously called again as none of the string has been 'consumed'. > > Signed-off-by: Simon Wood > --- > drivers/hid/hid-lg4ff.c | 4 ++-- > 1 file changed

[PATCHv2] HID:hid-logitech: Prevent possibility of infinite loop when using /sys interface

2014-08-14 Thread Simon Wood
If the device data is not accessible for some reason, returning 0 will cause the call to be continuously called again as none of the string has been 'consumed'. Signed-off-by: Simon Wood --- drivers/hid/hid-lg4ff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/