staging: sep: add missing misc_deregister() on error in sep_register_driver_with_fs()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 21 Oct 2013 05:33:50 +0000 (13:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Oct 2013 13:29:48 +0000 (06:29 -0700)
commita5b7151504de553b086f76082e348fdb8474ba12
tree415f0b7d452ed10e20f58c6a4c9930c8ce24d04a
parent6756bb7cd99a344e956d5eb0f34ea1dcade5fe5b
staging: sep: add missing misc_deregister() on error in sep_register_driver_with_fs()

Add the missing misc_deregister() before return from
sep_register_driver_with_fs() in the error handling case.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sep/sep_main.c