audit: fix possible soft lockup in __audit_inode_child()
[linux-2.6-microblaze.git] / kernel / auditsc.c
index addeed3..8dfd581 100644 (file)
@@ -2456,6 +2456,8 @@ void __audit_inode_child(struct inode *parent,
                }
        }
 
+       cond_resched();
+
        /* is there a matching child entry? */
        list_for_each_entry(n, &context->names_list, list) {
                /* can only match entries that have a name */