]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/sh/mm/pmb.c
fat: cleanup fat_parse_long() error handling
[linux-2.6-omap-h63xx.git] / arch / sh / mm / pmb.c
index cef727669c8759dde6ce20ceb9ecc138d71a28bb..84241676265e61455f4e9579f7cf41810601f1e9 100644 (file)
@@ -394,6 +394,8 @@ static int __init pmb_debugfs_init(void)
 
        dentry = debugfs_create_file("pmb", S_IFREG | S_IRUGO,
                                     sh_debugfs_root, NULL, &pmb_debugfs_fops);
+       if (!dentry)
+               return -ENOMEM;
        if (IS_ERR(dentry))
                return PTR_ERR(dentry);