From: Ian Abbott Date: Fri, 27 Mar 2015 15:13:04 +0000 (+0000) Subject: staging: comedi: comedi_fops: always clear events X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~133 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=922d9ced718268e464a0884ecee09da436e00d70;p=pandora-kernel.git staging: comedi: comedi_fops: always clear events `comedi_event()` is called from low-level drivers to handle asynchronous command event flags that are stored in `s->async->events` for subdevice `s`. It normally clears the event flags as well. As a safety check, it does nothing if no asynchronous command is running, but it leaves `s->async->events` unchanged in this case. For additional safety, change it to always clear the event flags to avoid leaving stale event flags set when another asynchronous command is set up. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed