From: Olaf Hering Date: Tue, 22 Mar 2011 09:02:17 +0000 (+0100) Subject: staging: hv: update dist release parsing in hv_kvp_daemon X-Git-Tag: v2.6.39-rc3~18^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7989f7d5ea65b10d2d4c8249aca75690d4d71e17;p=pandora-kernel.git staging: hv: update dist release parsing in hv_kvp_daemon The current code to parse the distribution file handles only files with at least 3 lines. openSuSE has 2 lines and Redhat only one (according to google). Update the parser to handle up to three lines properly. Also make the buffer allocation dynamic and remove a few casts to avoid compiler warnings. Signed-off-by: Olaf Hering Acked-by: KY Srinivasan Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed