diff options
author | Cosmin Dragomir <cosmin.gabriel.dragomir@gmail.com> | 2015-03-08 13:30:14 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-25 16:35:09 +0300 |
commit | 481026dbe88bd42cae88ade3289f26d16e5168aa (patch) | |
tree | 3bbec60988be35fddfac2daa185c7422cb6fd46b /drivers/base/attribute_container.c | |
parent | 3d3af6afa9985ca30d9ee8f48897eb71f9c1583f (diff) | |
download | linux-481026dbe88bd42cae88ade3289f26d16e5168aa.tar.xz |
attribute_container: fix missing blank lines after declarations
Found with checkpatch.pl
Signed-off-by: Cosmin Dragomir <cosmin.gabriel.dragomir@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/attribute_container.c')
-rw-r--r-- | drivers/base/attribute_container.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c index 3ead3af4be61..2ba4cac080c5 100644 --- a/drivers/base/attribute_container.c +++ b/drivers/base/attribute_container.c @@ -94,6 +94,7 @@ int attribute_container_unregister(struct attribute_container *cont) { int retval = -EBUSY; + mutex_lock(&attribute_container_mutex); spin_lock(&cont->containers.k_lock); if (!list_empty(&cont->containers.k_list)) @@ -349,6 +350,7 @@ int attribute_container_add_class_device(struct device *classdev) { int error = device_add(classdev); + if (error) return error; return attribute_container_add_attrs(classdev); |