diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-11-01 11:49:48 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2024-04-03 16:05:51 +0200 |
commit | de3f64b738af57e2732b91a0774facc675b75b54 (patch) | |
tree | 8d5e6a0171b1709b7b8919c4bf540e6be6b3abe3 /samples/coresight | |
parent | 0200ceed3042222a1f78b3e79ec71a5a52977e3a (diff) | |
download | linux-stable-de3f64b738af57e2732b91a0774facc675b75b54.tar.gz linux-stable-de3f64b738af57e2732b91a0774facc675b75b54.tar.bz2 linux-stable-de3f64b738af57e2732b91a0774facc675b75b54.zip |
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: 0fd169576648 ("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>
Diffstat (limited to 'samples/coresight')
0 files changed, 0 insertions, 0 deletions