diff options
Diffstat (limited to 'security/selinux/avc.c')
-rw-r--r-- | security/selinux/avc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index f2dde268165a..3ee9b6a8beb6 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c | |||
@@ -746,9 +746,7 @@ int avc_has_perm_noaudit(u32 ssid, u32 tsid, | |||
746 | else | 746 | else |
747 | avd = &avd_entry; | 747 | avd = &avd_entry; |
748 | 748 | ||
749 | rc = security_compute_av(ssid, tsid, tclass, requested, avd); | 749 | security_compute_av(ssid, tsid, tclass, avd); |
750 | if (rc) | ||
751 | goto out; | ||
752 | rcu_read_lock(); | 750 | rcu_read_lock(); |
753 | node = avc_insert(ssid, tsid, tclass, avd); | 751 | node = avc_insert(ssid, tsid, tclass, avd); |
754 | } else { | 752 | } else { |
@@ -770,7 +768,6 @@ int avc_has_perm_noaudit(u32 ssid, u32 tsid, | |||
770 | } | 768 | } |
771 | 769 | ||
772 | rcu_read_unlock(); | 770 | rcu_read_unlock(); |
773 | out: | ||
774 | return rc; | 771 | return rc; |
775 | } | 772 | } |
776 | 773 | ||