Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm/kmemleak: move the initialisation of object to __link_object
In patch (mm: kmemleak: split __create_object into two functions), the initialisation of object has been splited in two places. Catalin said it feels a bit weird and error prone. So leave __alloc_object() to just do the actual allocation and let __link_object() do the full initialisation. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Liu Shixin <[email protected]> Suggested-by: Catalin Marinas <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information