powerpc/nvram: Handle partition names >= 12 chars
authorJim Keniston <jkenisto@us.ibm.com>
Thu, 11 Nov 2010 18:54:27 +0000 (18:54 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 30 Nov 2010 04:43:51 +0000 (15:43 +1100)
commit6024ede9ba84aa1b891c2d6bc98eda07801235e5
treefa7a2c4c991ae4b5d3b083944394a4e0ecf02591
parent690d1a9bd14bd861328ca66473a223f60cf1ad31
powerpc/nvram: Handle partition names >= 12 chars

The name field in the nvram_header can be < 12 chars, null-terminated,
or 12 chars without the null.  Handle this safely.

Signed-off-by: Jim Keniston <jkenisto@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/nvram_64.c