From: Mattia Dongili Date: Thu, 20 Dec 2012 22:21:09 +0000 (+0900) Subject: sony-laptop: fix SNC buffer calls when SN06 returns Integers X-Git-Tag: v3.8-rc4~40^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcbeec264d73b7228ffdfe767eab69b2353099b1;p=pandora-kernel.git sony-laptop: fix SNC buffer calls when SN06 returns Integers SN06 in some cases returns an Integer instead of a buffer. While the code handling the return value was trying to cope with the difference, the memcpy call was not making any difference between the two types of acpi_object union. This regression was introduced in 3.5. While there also rework the return value logic to improve readability. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=48671 Cc: Cc: Fabrizio Narni Cc: Signed-off-by: Mattia Dongili Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed