diff mbox

[RFC,06/11] Smack: remove socket blob free

Message ID 8bedea9f-5a6c-7ff3-dda8-0ad7415dd39f@schaufler-ca.com (mailing list archive)
State New, archived
Headers show

Commit Message

Casey Schaufler April 5, 2017, 9:53 p.m. UTC
Subject: [PATCH RFC 06/11] Smack: remove socket blob free.

With stacking in place the infrastructure releases the
socket blob, so the module shouldn't.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>

---
 security/smack/smack_lsm.c | 1 -
 1 file changed, 1 deletion(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 7c8ffe4..e1264b9 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -2272,7 +2272,6 @@  static void smack_sk_free_security(struct sock *sk)
 		}
 		rcu_read_unlock();
 	}
-	kfree(sk->sk_security);
 }
 #endif