aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMiaohe Lin <[email protected]>2022-08-16 21:05:49 +0800
committerAndrew Morton <[email protected]>2022-09-11 20:25:55 -0700
commit3a6bdda0b58bab883da8dc3a0503e2a13b9d7456 (patch)
treeb252d9fa19e82c65e87357021b5288b8cf3807b7 /tools/perf/scripts/python/bin
parenta43a83c79b4fd36e297f97b7468be28fdf771d78 (diff)
mm/hugetlb: fix WARN_ON(!kobj) in sysfs_create_group()
If sysfs_create_group() fails with hstate_attr_group, hstate_kobjs[hi] will be set to NULL. Then it will be passed to sysfs_create_group() if h->demote_order != 0 thus triggering WARN_ON(!kobj) check. Fix this by making sure hstate_kobjs[hi] != NULL when calling sysfs_create_group. Link: https://lkml.kernel.org/r/[email protected] Fixes: 79dfc695525f ("hugetlb: add demote hugetlb page sysfs interfaces") Signed-off-by: Miaohe Lin <[email protected]> Reviewed-by: Mike Kravetz <[email protected]> Reviewed-by: Muchun Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions