orangefs: Fix sb refcount leak when allocate sb info failed.
[linux-2.6-block.git] / fs / orangefs / super.c
index 897fb6c3f16134fc1c49e681668c27bcd902f97d..18341cde3f34e364ee96328567db04999fc7623d 100644 (file)
@@ -526,7 +526,7 @@ struct dentry *orangefs_mount(struct file_system_type *fst,
        sb->s_fs_info = kzalloc(sizeof(struct orangefs_sb_info_s), GFP_KERNEL);
        if (!ORANGEFS_SB(sb)) {
                d = ERR_PTR(-ENOMEM);
-               goto free_op;
+               goto free_sb_and_op;
        }
 
        ret = orangefs_fill_sb(sb,