OSDN Git Service

selinux: prevent KMSAN warning in selinux_inet_conn_request()
[tomoyo/tomoyo-test1.git] / security / selinux / netlabel.c
index 528f518..8f18280 100644 (file)
@@ -198,6 +198,7 @@ int selinux_netlbl_skbuff_getsid(struct sk_buff *skb,
        struct netlbl_lsm_secattr secattr;
 
        if (!netlbl_enabled()) {
+               *type = NETLBL_NLTYPE_NONE;
                *sid = SECSID_NULL;
                return 0;
        }