From: Ian Abbott Date: Fri, 25 Jul 2014 17:07:07 +0000 (+0100) Subject: staging: comedi: amplc_dio200_common: prevent extra free_irq() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~168 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a386149fb2bad23b5c6123894049ce3392bf76b5;p=pandora-kernel.git staging: comedi: amplc_dio200_common: prevent extra free_irq() `dio200_detach()` in "amplc_dio200.c" calls `amplc_dio200_common_detach()` in "amplc_dio200_common.c", followed by `comedi_legacy_detach()` in "../drivers.c". Both of those functions call `free_irq()` if `dev->irq` is non-zero. The second call produces a warning message because the handler has already been freed. Prevent that by setting `dev->irq = 0` in `amplc_dio200_common_detach()`. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed