diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-21 13:33:50 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-27 06:29:48 -0700 |
commit | a5b7151504de553b086f76082e348fdb8474ba12 (patch) | |
tree | 415f0b7d452ed10e20f58c6a4c9930c8ce24d04a | |
parent | 6756bb7cd99a344e956d5eb0f34ea1dcade5fe5b (diff) | |
download | linux-a5b7151504de553b086f76082e348fdb8474ba12.tar.bz2 |
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>
-rw-r--r-- | drivers/staging/sep/sep_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/sep/sep_main.c b/drivers/staging/sep/sep_main.c index 11f5b2117457..5f8c0a8ecb9d 100644 --- a/drivers/staging/sep/sep_main.c +++ b/drivers/staging/sep/sep_main.c @@ -4075,6 +4075,7 @@ static int sep_register_driver_with_fs(struct sep_device *sep) if (ret_val) { dev_warn(&sep->pdev->dev, "sysfs attribute1 fails for SEP %x\n", ret_val); + misc_deregister(&sep->miscdev_sep); return ret_val; } |