Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vinput: Fix NULL pointer dereference caused by failed kzalloc allocation
When kzalloc fails to allocate memory and returns NULL, it leads to a NULL pointer dereference error later on. Add a check for the return value of kzalloc. When kzalloc fails to allocate memory, it prints an error message and returns ERR_PTR(-ENOMEM). fix ERR_PTR on kzalloc check
- Loading branch information