diff options
| author | Maxime Ripard <mripard@kernel.org> | 2023-07-11 09:23:20 +0200 | 
|---|---|---|
| committer | Maxime Ripard <mripard@kernel.org> | 2023-07-11 09:23:20 +0200 | 
| commit | 2f98e686ef59b5d19af5847d755798e2031bee3a (patch) | |
| tree | 7b47919242853d088decf898ca79d6cda0d49381 /lib/debugobjects.c | |
| parent | a2848d08742c8e8494675892c02c0d22acbe3cf8 (diff) | |
| parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) | |
Merge v6.5-rc1 into drm-misc-fixes
Boris needs 6.5-rc1 in drm-misc-fixes to prevent a conflict.
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Diffstat (limited to 'lib/debugobjects.c')
| -rw-r--r-- | lib/debugobjects.c | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 984985c39c9b..a517256a270b 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -498,6 +498,15 @@ static void debug_print_object(struct debug_obj *obj, char *msg)  	const struct debug_obj_descr *descr = obj->descr;  	static int limit; +	/* +	 * Don't report if lookup_object_or_alloc() by the current thread +	 * failed because lookup_object_or_alloc()/debug_objects_oom() by a +	 * concurrent thread turned off debug_objects_enabled and cleared +	 * the hash buckets. +	 */ +	if (!debug_objects_enabled) +		return; +  	if (limit < 5 && descr != descr_test) {  		void *hint = descr->debug_hint ?  			descr->debug_hint(obj->object) : NULL; | 
