Files
linux-stable-mirror/fs
Christophe JAILLETandGreg Kroah-Hartman 8a57544e92 vboxsf: Avoid an spurious warning if load_nls_xxx() fails
commit de3f64b738 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:28:25 +02:00
..
2024-04-03 15:19:30 +02:00
2024-02-05 20:12:58 +00:00
2024-04-03 15:19:34 +02:00
2023-09-13 09:43:05 +02:00
2024-02-23 09:12:45 +01:00
2023-09-23 11:11:10 +02:00
2024-03-26 18:20:28 -04:00
2023-08-30 16:11:10 +02:00
2023-01-04 11:29:01 +01:00