Skip to content

Commit

Permalink
mm-zpool-prevent-zbud-zsmalloc-from-unloading-when-used-checkpatch-fixes
Browse files Browse the repository at this point in the history
WARNING: Missing a blank line after declarations
torvalds#76: FILE: mm/zpool.c:79:
+			bool got = try_module_get(driver->owner);
+			spin_unlock(&drivers_lock);

total: 0 errors, 1 warnings, 94 lines checked

./patches/mm-zpool-prevent-zbud-zsmalloc-from-unloading-when-used.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Dan Streetman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
akpm00 authored and sfrothwell committed Jun 26, 2014
1 parent 04b72c7 commit f5652b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/zpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ static struct zpool_driver *zpool_get_driver(char *type)
list_for_each_entry(driver, &drivers_head, list) {
if (!strcmp(driver->type, type)) {
bool got = try_module_get(driver->owner);

spin_unlock(&drivers_lock);
return got ? driver : NULL;
}
Expand Down

0 comments on commit f5652b5

Please sign in to comment.