In the Linux kernel, the following vulnerability has been resolved: platform/x86: toshibahaps: Fix memory leaks in add/remove routines toshibahapsadd() leaks the haps object allocated by it if it returns an error after allocating that object successfully. toshibahapsremove() does not free the object pointed to by toshibahaps before clearing that pointer, so it becomes unreachable allocated memory. Address these memory leaks by using devm_kzalloc() for allocating the memory in question.