Skip to content
Commit 84cc257e authored by YoungJun.park's avatar YoungJun.park Committed by Greg Kroah-Hartman
Browse files

kunit: alloc_string_stream_fragment error handling bug fix

[ Upstream commit 93ef8305 ]

When it fails to allocate fragment, it does not free and return error.
And check the pointer inappropriately.

Fixed merge conflicts with
commit 61888776

 ("kunit: update NULL vs IS_ERR() tests")
Shuah Khan <skhan@linuxfoundation.org>

Signed-off-by: default avatarYoungJun.park <her0gyugyu@gmail.com>
Reviewed-by: default avatarDavid Gow <davidgow@google.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8b2de521
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment