staging: dgap: introduce dgap_stop()
authorDaeseok Youn <daeseok.youn@gmail.com>
Thu, 9 Oct 2014 04:40:11 +0000 (13:40 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:30:13 +0000 (10:30 +0800)
commitebf72ccf53f0fd494c41e856f255d09bc19d2ff4
treea0ab9bf0d7b76843b8187e90b51884bb52d3405c
parent5ba1b07a6eae38886b7e27d662da2786d0613386
staging: dgap: introduce dgap_stop()

The dgap_init_module() need to unwind for cleanup variables properly.
Because dgap_init_module() calls dgap_cleanup_module() for freeing
variables but this function is possible to free variables
which are not allocated.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c