mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
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>
This commit is contained in:
parent
6756bb7cd9
commit
a5b7151504
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user