Description of problem: As the potential failure of the kvmalloc_array(), it should be better to check and restore the 'data' if fails in order to avoid the dereference of the NULL pointer. Additional info: See upstream: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=886e44c9298a6b428ae046e2fa092ca52e822e6a
merged: https://gitee.com/anolis/cloud-kernel/pulls/1354