[PATCH] ppc64: fix lparcfg datatype and bad math.

will schmidt will_schmidt at vnet.ibm.com
Tue Sep 13 00:44:09 EST 2005


This patch fixes two problems with the string parsing code out of lparcfg.
First, it changes the data type of a char array to be unsigned.  This 
prevents some nasty behavior when the code is built with -fsigned-char, 
and one of the bytes containing size-of-string has a high-bit set.
Second, it corrects a bit of bad math when determining the size of the 
string coming back from the get-system-parameter hcall.

Signed-off-by: Will Schmidt <willschm at us.ibm.com>


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sep12.lparcfg.diff
Url: http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20050912/013a013c/attachment.txt 


More information about the Linuxppc64-dev mailing list