[OS-BUILD PATCH] Fix gcc 12 warning address of 'mem_section' will never be NULL