Skip to content

Commit c50a871

Browse files
sj-awspaulmckrcu
authored andcommitted
doc/RCU/listRCU: Fix typos in a example code snippets
Signed-off-by: SeongJae Park <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent d18c265 commit c50a871

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/RCU/listRCU.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ need to be filled in)::
226226
list_for_each_entry(e, list, list) {
227227
if (!audit_compare_rule(rule, &e->rule)) {
228228
e->rule.action = newaction;
229-
e->rule.file_count = newfield_count;
229+
e->rule.field_count = newfield_count;
230230
write_unlock(&auditsc_lock);
231231
return 0;
232232
}
@@ -255,7 +255,7 @@ RCU (*read-copy update*) its name. The RCU code is as follows::
255255
return -ENOMEM;
256256
audit_copy_rule(&ne->rule, &e->rule);
257257
ne->rule.action = newaction;
258-
ne->rule.file_count = newfield_count;
258+
ne->rule.field_count = newfield_count;
259259
list_replace_rcu(&e->list, &ne->list);
260260
call_rcu(&e->rcu, audit_free_rule);
261261
return 0;

0 commit comments

Comments
 (0)