linux/fs/vboxsf
Christophe JAILLET de3f64b738 vboxsf: Avoid an spurious warning if load_nls_xxx() fails
If an load_nls_xxx() function fails a few lines above, the 'sbi->bdi_id' is
still 0.
So, in the error handling path, we will call ida_simple_remove(..., 0)
which is not allocated yet.

In order to prevent a spurious "ida_free called for id=0 which is not
allocated." message, tweak the error handling path and add a new label.

Fixes: 0fd1695766 ("fs: Add VirtualBox guest shared folder (vboxsf) support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/d09eaaa4e2e08206c58a1a27ca9b3e81dc168773.1698835730.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2024-04-03 16:05:51 +02:00
..
dir.c vfs: get rid of old '->iterate' directory operation 2023-08-06 15:08:35 +02:00
file.c splice: Use filemap_splice_read() instead of generic_file_splice_read() 2023-05-24 08:42:17 -06:00
Kconfig
Makefile
shfl_hostintf.h vboxsf: Use flexible arrays for trailing string member 2023-07-26 14:55:35 -07:00
super.c vboxsf: Avoid an spurious warning if load_nls_xxx() fails 2024-04-03 16:05:51 +02:00
utils.c vboxsf: remove redundant variable out_len 2024-04-03 15:55:33 +02:00
vboxsf_wrappers.c fs: vboxsf: fix a kernel-doc warning 2023-12-08 15:32:31 -07:00
vfsmod.h fs: port ->getattr() to pass mnt_idmap 2023-01-19 09:24:25 +01:00