|
@@ -442,15 +442,16 @@ void ecryptfs_release_messaging(void)
|
|
|
}
|
|
|
if (ecryptfs_daemon_hash) {
|
|
|
struct ecryptfs_daemon *daemon;
|
|
|
+ struct hlist_node *n;
|
|
|
int i;
|
|
|
|
|
|
mutex_lock(&ecryptfs_daemon_hash_mux);
|
|
|
for (i = 0; i < (1 << ecryptfs_hash_bits); i++) {
|
|
|
int rc;
|
|
|
|
|
|
- hlist_for_each_entry(daemon,
|
|
|
- &ecryptfs_daemon_hash[i],
|
|
|
- euid_chain) {
|
|
|
+ hlist_for_each_entry_safe(daemon, n,
|
|
|
+ &ecryptfs_daemon_hash[i],
|
|
|
+ euid_chain) {
|
|
|
rc = ecryptfs_exorcise_daemon(daemon);
|
|
|
if (rc)
|
|
|
printk(KERN_ERR "%s: Error whilst "
|