“16a334c0de5a94b1d10a1ac9a33f4dedac89a075”上不存在“include/linux/usb/input.h”
-
由 Greg Kroah-Hartman 提交于
stable inclusion from stable-v5.10.143 commit 68f22c80c18186f3dba9b2b60bd05488987ae7ce category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0U6 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=68f22c80c18186f3dba9b2b60bd05488987ae7ce -------------------------------- commit dec9b2f1 upstream. There is a very common pattern of using debugfs_remove(debufs_lookup(..)) which results in a dentry leak of the dentry that was looked up. Instead of having to open-code the correct pattern of calling dput() on the dentry, create debugfs_lookup_and_remove() to handle this pattern automatically and properly without any memory leaks. Cc: stable <stable@kernel.org> Reported-by: NKuyo Chang <kuyo.chang@mediatek.com> Tested-by: NKuyo Chang <kuyo.chang@mediatek.com> Link: https://lore.kernel.org/r/YxIaQ8cSinDR881k@kroah.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NJialin Zhang <zhangjialin11@huawei.com> Reviewed-by: NZheng Zengkai <zhengzengkai@huawei.com>
6dbdd99f