From e8375b8c74b43df9049059f06d9a64cc376f2ff1 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 2 Mar 2003 04:36:51 -0800 Subject: [PATCH] [PATCH] fix presto_get_sb() return value and oops. Patch from Maneesh Soni It's supposed to return an ERR_PTR value on error, not NULL. --- fs/intermezzo/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/intermezzo/super.c b/fs/intermezzo/super.c index 2324d561fa6af..af3f3b1fe1fa7 100644 --- a/fs/intermezzo/super.c +++ b/fs/intermezzo/super.c @@ -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); } -- 2.53.0