diff options
Diffstat (limited to 'security/smack')
-rw-r--r-- | security/smack/smackfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c index 8d3c2a051c7b..f83a80980726 100644 --- a/security/smack/smackfs.c +++ b/security/smack/smackfs.c | |||
@@ -735,8 +735,8 @@ static void smk_netlbladdr_insert(struct smk_netlbladdr *new) | |||
735 | return; | 735 | return; |
736 | } | 736 | } |
737 | 737 | ||
738 | m = list_entry(rcu_dereference(smk_netlbladdr_list.next), | 738 | m = list_entry_rcu(smk_netlbladdr_list.next, |
739 | struct smk_netlbladdr, list); | 739 | struct smk_netlbladdr, list); |
740 | 740 | ||
741 | /* the comparison '>' is a bit hacky, but works */ | 741 | /* the comparison '>' is a bit hacky, but works */ |
742 | if (new->smk_mask.s_addr > m->smk_mask.s_addr) { | 742 | if (new->smk_mask.s_addr > m->smk_mask.s_addr) { |
@@ -749,8 +749,8 @@ static void smk_netlbladdr_insert(struct smk_netlbladdr *new) | |||
749 | list_add_rcu(&new->list, &m->list); | 749 | list_add_rcu(&new->list, &m->list); |
750 | return; | 750 | return; |
751 | } | 751 | } |
752 | m_next = list_entry(rcu_dereference(m->list.next), | 752 | m_next = list_entry_rcu(m->list.next, |
753 | struct smk_netlbladdr, list); | 753 | struct smk_netlbladdr, list); |
754 | if (new->smk_mask.s_addr > m_next->smk_mask.s_addr) { | 754 | if (new->smk_mask.s_addr > m_next->smk_mask.s_addr) { |
755 | list_add_rcu(&new->list, &m->list); | 755 | list_add_rcu(&new->list, &m->list); |
756 | return; | 756 | return; |