f2fs: fix to do sanity check on curseg->alloc_type
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.10.110 by commit 498b7088db71f9707359448cd6800bbb1882f4c3. For more details please see the references link.