From: H Hartley Sweeten Date: Mon, 24 Jun 2013 23:23:00 +0000 (-0700) Subject: staging: comedi: unioxx5: fix unioxx5_detach() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f5ac6f4f595b4b17b15ff6701f07377bea8ffd3;p=pandora-kernel.git staging: comedi: unioxx5: fix unioxx5_detach() During the attach of this driver, it's possible for the allocation of the subdevice private data to fail. It's also possible that the io region was not successfully requested. Validate the pointer and iobase before trying to release the region. For aesthetic reasons, rename the local variables. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed