<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/arch/powerpc/boot/simple_alloc.c, branch v6.12.80</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2024-03-03T11:20:29+00:00</updated>
<entry>
<title>powerpc/boot: Only free if realloc() succeeds</title>
<updated>2024-03-03T11:20:29+00:00</updated>
<author>
<name>Michael Ellerman</name>
<email>mpe@ellerman.id.au</email>
</author>
<published>2024-02-29T11:51:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f2d5bccaca3e8c09c9b9c8485375f7bdbb2631d2'/>
<id>urn:sha1:f2d5bccaca3e8c09c9b9c8485375f7bdbb2631d2</id>
<content type='text'>
simple_realloc() frees the original buffer (ptr) even if the
reallocation failed.

Fix it to behave like standard realloc() and only free the original
buffer if the reallocation succeeded.

Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://msgid.link/20240229115149.749264-1-mpe@ellerman.id.au

</content>
</entry>
<entry>
<title>powerpc/boot: Handle allocation failure in simple_realloc()</title>
<updated>2024-03-03T11:20:28+00:00</updated>
<author>
<name>Li zeming</name>
<email>zeming@nfschina.com</email>
</author>
<published>2022-12-19T02:18:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=69b0194ccec033c208b071e019032c1919c2822d'/>
<id>urn:sha1:69b0194ccec033c208b071e019032c1919c2822d</id>
<content type='text'>
simple_malloc() will return NULL when there is not enough memory left.
Check pointer 'new' before using it to copy the old data.

Signed-off-by: Li zeming &lt;zeming@nfschina.com&gt;
[mpe: Reword subject, use change log from Christophe]
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://msgid.link/20221219021816.3012-1-zeming@nfschina.com

</content>
</entry>
<entry>
<title>powerpc/boot: Convert more files to use SPDX tags</title>
<updated>2022-08-26T01:02:17+00:00</updated>
<author>
<name>Michael Ellerman</name>
<email>mpe@ellerman.id.au</email>
</author>
<published>2022-08-19T11:04:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e01432baf6618296f4d2d557e6b4c3245a5cc3c2'/>
<id>urn:sha1:e01432baf6618296f4d2d557e6b4c3245a5cc3c2</id>
<content type='text'>
These files are all plain GPL 2.0, with a second sentence about being
licensed as-is.

Similar to the rule in commit 577b61cee5b2 ("treewide: Replace GPLv2
boilerplate/reference with SPDX - gpl-2.0_398.RULE").

Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Reviewed-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Link: https://lore.kernel.org/r/20220819110430.433984-1-mpe@ellerman.id.au
</content>
</entry>
<entry>
<title>[POWERPC] bootwrapper: Use `unsigned long' for malloc sizes</title>
<updated>2007-04-24T12:06:54+00:00</updated>
<author>
<name>Geert Uytterhoeven</name>
<email>Geert.Uytterhoeven@eu.sony.com</email>
</author>
<published>2007-04-18T09:24:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4ca478e6066ce57f7cc856af36aaf1a2d64417cb'/>
<id>urn:sha1:4ca478e6066ce57f7cc856af36aaf1a2d64417cb</id>
<content type='text'>
Use `unsigned long' for malloc sizes, to match common practice and types used
by most callers and callees.
Also use `unsigned long' for integers representing pointers in simple_alloc.

Signed-off-by: Geert Uytterhoeven &lt;Geert.Uytterhoeven@eu.sony.com&gt;
Signed-off-by: Paul Mackerras &lt;paulus@samba.org&gt;
</content>
</entry>
<entry>
<title>[POWERPC] Add simple memory allocator to bootwrapper</title>
<updated>2006-10-23T02:49:19+00:00</updated>
<author>
<name>Mark A. Greer</name>
<email>mgreer@mvista.com</email>
</author>
<published>2006-10-16T20:54:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=01a6372008ed450982ba38ee5fd91028b9f5a781'/>
<id>urn:sha1:01a6372008ed450982ba38ee5fd91028b9f5a781</id>
<content type='text'>
Provide primitive malloc, free, and realloc functions for bootwrapper.

Signed-off-by: Mark A. Greer &lt;mgreer@mvista.com&gt;
Signed-off-by: Paul Mackerras &lt;paulus@samba.org&gt;
</content>
</entry>
</feed>
