]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/capability.c
USB: fsl_qe_udc: Check for muram allocation errors
[linux-2.6-omap-h63xx.git] / kernel / capability.c
index c598d9d5be4fd6d325286ddab316ff8ae0e22651..688926e496be18737d8ae37af9fe807f75185f56 100644 (file)
@@ -306,7 +306,7 @@ int capable(int cap)
                BUG();
        }
 
-       if (has_capability(current, cap)) {
+       if (security_capable(cap) == 0) {
                current->flags |= PF_SUPERPRIV;
                return 1;
        }