]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix boot wrapper memcmp() called with zero length argument
authorMike Ditto <mditto@consentry.com>
Fri, 17 Oct 2008 09:27:51 +0000 (09:27 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 21 Oct 2008 04:17:48 +0000 (15:17 +1100)
commit4aa67c03895a0d6d7590cbf2ab6fbedd5743995b
treebca9e11375be03e5cbe71cc9962c37993bb3382c
parentcfb184c624b67b816300554e67ed1a8a3368ddc3
powerpc: Fix boot wrapper memcmp() called with zero length argument

I noticed, when trying to use, e.g.,
node = find_node_by_prop_value(prev, "booleanprop", "", 0))
to search for all nodes with a certain boolean property, that memcmp()
returns garbage when comparing zero bytes.  It should return zero.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/boot/string.S