afs: Add missing afs_put_cell()
[linux-block.git] / fs / afs / volume.c
index 684c48293353e71058a5c151106ee805dfcf3752..79db9021f140fc80ed6ee1dc13996ae20c660165 100644 (file)
@@ -102,6 +102,7 @@ static struct afs_volume *afs_alloc_volume(struct afs_mount_params *params,
 error_2:
        afs_put_serverlist(params->net, slist);
 error_1:
+       afs_put_cell(params->net, volume->cell);
        kfree(volume);
 error_0:
        return ERR_PTR(ret);