Message ID | 226f1d09-aed1-e1c7-1607-e71393cd3a51@linuxfoundation.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 69fb073b5ba6d7c9358a04115ed61b78c73790ce |
Delegated to: | Brendan Higgins |
Headers | show |
Series | [GIT,PULL] KUnit fixes update for Linux 6.2-rc2 | expand |
The pull request you sent on Thu, 29 Dec 2022 16:07:21 -0700:
> git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-kunit-fixes-6.2-rc2
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/69fb073b5ba6d7c9358a04115ed61b78c73790ce
Thank you!
diff --git a/lib/kunit/string-stream.c b/lib/kunit/string-stream.c index f5f51166d8c2..cc32743c1171 100644 --- a/lib/kunit/string-stream.c +++ b/lib/kunit/string-stream.c @@ -23,8 +23,10 @@ static struct string_stream_fragment *alloc_string_stream_fragment( return ERR_PTR(-ENOMEM); frag->fragment = kunit_kmalloc(test, len, gfp); - if (!frag->fragment) + if (!frag->fragment) { + kunit_kfree(test, frag); return ERR_PTR(-ENOMEM); + } return frag; }