]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix presto_get_sb() return value and oops.
authorAndrew Morton <akpm@digeo.com>
Sun, 2 Mar 2003 12:36:51 +0000 (04:36 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 2 Mar 2003 12:36:51 +0000 (04:36 -0800)
Patch from Maneesh Soni <maneesh@in.ibm.com>

It's supposed to return an ERR_PTR value on error, not NULL.

fs/intermezzo/super.c

index 2324d561fa6af0158f9ddae11c3efcbd70c0b907..af3f3b1fe1fa7525ff35576fa00e7d6ed8f7f545 100644 (file)
@@ -318,7 +318,7 @@ struct super_block * presto_get_sb(struct file_system_type *izo_type,
 
         CDEBUG(D_MALLOC, "mount error exit: kmem %ld, vmem %ld\n",
                presto_kmemory, presto_vmemory);
-        return NULL;
+        return ERR_PTR(-EINVAL);
 }