From: Ian Abbott Date: Thu, 4 Apr 2013 13:58:57 +0000 (+0100) Subject: staging: comedi: put module _after_ detach X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~291 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcd7b8bd63cb81c5b973bf86510ca3c80bbbd162;p=pandora-kernel.git staging: comedi: put module _after_ detach On failure of the call to the low-level comedi device driver's `->attach()` handler from `__comedi_device_attach()`, reverse the current ordering of the calls to `module_put()` and `comedi_device_detach()` because `__comedi_device_detach()` will call code in the module being put. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed