Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87092
b: refs/heads/master
c: 6c5db22
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell authored and Linus Torvalds committed Mar 11, 2008
1 parent 06e7eb1 commit e807ed1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2668db9111bb1a6ab5a54f41f703179f35c7d098
refs/heads/master: 6c5db22d280302c33dafb309c25bf2841fb99c37
7 changes: 4 additions & 3 deletions trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2179,9 +2179,11 @@ sys_init_module(void __user *umod,
return ret;
}

/* Now it's a first class citizen! */
mutex_lock(&module_mutex);
/* Now it's a first class citizen! Wake up anyone waiting for it. */
mod->state = MODULE_STATE_LIVE;
wake_up(&module_wq);

mutex_lock(&module_mutex);
/* Drop initial reference. */
module_put(mod);
unwind_remove_table(mod->unwind_info, 1);
Expand All @@ -2190,7 +2192,6 @@ sys_init_module(void __user *umod,
mod->init_size = 0;
mod->init_text_size = 0;
mutex_unlock(&module_mutex);
wake_up(&module_wq);

return 0;
}
Expand Down

0 comments on commit e807ed1

Please sign in to comment.