[linux-yocto] [4.12] [PATCH 2/2] of: dynamic: fix memory leak related to properties of __of_node_dup

2018-05-28 Thread quanyang.wang
From: Lixin Wang commit 070ea018fa092f2ef41bef57896665a25f05d2d8 upstream If a node with no properties is dynamically added, then a property is dynamically added to the node, then the property is dynamically removed, the result will be node->properties == NULL and node->deadprops != NULL. Add a

[linux-yocto] [4.12] [PATCH 1/2] debugobjects: Make kmemleak ignore debug objects

2018-05-28 Thread quanyang.wang
From: Waiman Long commit caba4cbbd27d755572730801ac34fe063fc40a32 upstream The allocated debug objects are either on the free list or in the hashed bucket lists. So they won't get lost. However if both debug objects and kmemleak are enabled and kmemleak scanning is done while some of the debug o