Re: [PATCH] ext4: Fix potential null dereference in ext4 test

From: Theodore Ts'o
Date: Fri Mar 21 2025 - 01:09:42 EST


On Fri, Mar 07, 2025 at 07:54:31PM +0800, Charles Han wrote:
> kunit_kzalloc() may return a NULL pointer, dereferencing it without
> NULL check may lead to NULL dereference.
> Add a NULL check for test_state

Thanks, others have submitted the same fix. It's now fixed in my tree
and linux-next.

- Ted