]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/smack/smackfs.c
Don't ask twice about not including staging drivers
[linux-2.6-omap-h63xx.git] / security / smack / smackfs.c
index e7c642458ec9431b1639935880b6082f21492f6a..c21d8c8bf0c789f3af9693fac3cdbd226dd4b8cc 100644 (file)
@@ -354,9 +354,11 @@ static void smk_cipso_doi(void)
                doip->tags[rc] = CIPSO_V4_TAG_INVALID;
 
        rc = netlbl_cfg_cipsov4_add_map(doip, NULL, &audit_info);
-       if (rc != 0)
+       if (rc != 0) {
                printk(KERN_WARNING "%s:%d add rc = %d\n",
                       __func__, __LINE__, rc);
+               kfree(doip);
+       }
 }
 
 /**