diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 0e803d857f9f..8287dbe92967 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1911,17 +1911,21 @@ static int __init fuse_init(void) if (res) goto err_sysfs_cleanup; +#ifdef CONFIG_FUSE_BPF res = fuse_bpf_init(); if (res) goto err_ctl_cleanup; +#endif sanitize_global_limit(&max_user_bgreq); sanitize_global_limit(&max_user_congthresh); return 0; +#ifdef CONFIG_FUSE_BPF err_ctl_cleanup: fuse_ctl_cleanup(); +#endif err_sysfs_cleanup: fuse_sysfs_cleanup(); err_dev_cleanup: @@ -1939,7 +1943,9 @@ static void __exit fuse_exit(void) fuse_ctl_cleanup(); fuse_sysfs_cleanup(); fuse_fs_cleanup(); +#ifdef CONFIG_FUSE_BPF fuse_bpf_cleanup(); +#endif fuse_dev_cleanup(); }