Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362087
b: refs/heads/master
c: b7d44d9
h: refs/heads/master
i:
  362085: 27662c2
  362083: cfafd3b
  362079: d94c42d
v: v3
  • Loading branch information
Satoru Takeuchi authored and Rusty Russell committed Mar 20, 2013
1 parent 4156e19 commit 6b4a404
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aabd6a8fa5a933bdf968cd86e34122745c1960e8
refs/heads/master: b7d44d9487a11e835de10908f4ab30b4290c0b7f
9 changes: 9 additions & 0 deletions trunk/drivers/char/hw_random/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,15 @@ void hwrng_unregister(struct hwrng *rng)
}
EXPORT_SYMBOL_GPL(hwrng_unregister);

static void __exit hwrng_exit(void)
{
mutex_lock(&rng_mutex);
BUG_ON(current_rng);
kfree(rng_buffer);
mutex_unlock(&rng_mutex);
}

module_exit(hwrng_exit);

MODULE_DESCRIPTION("H/W Random Number Generator (RNG) driver");
MODULE_LICENSE("GPL");

0 comments on commit 6b4a404

Please sign in to comment.