On Sat, Sep 05, 2015 at 01:12:02PM +0100, Salah Triki wrote:
> dgnc_poll_stop is a local variable in dgnc_driver.c, so it is useless to take 
> dgnc_poll_lock before
> accessing to this variable.

No, not at all!  scope doesn't matter for locks, this patch is broken
and wrong.

How did you test it?

greg k-h
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to