From: Olav Haugan Date: Fri, 22 Nov 2013 17:30:41 +0000 (-0800) Subject: staging: zsmalloc: Ensure handle is never 0 on success X-Git-Tag: v3.13-rc2~16^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67296874eb1cc80317bf2a8fba22b494e21eb29b;p=pandora-kernel.git staging: zsmalloc: Ensure handle is never 0 on success zsmalloc encodes a handle using the pfn and an object index. On hardware platforms with physical memory starting at 0x0 the pfn can be 0. This causes the encoded handle to be 0 and is incorrectly interpreted as an allocation failure. This issue affects all current and future SoCs with physical memory starting at 0x0. All MSM8974 SoCs which includes Google Nexus 5 devices are affected. To prevent this false error we ensure that the encoded handle will not be 0 when allocation succeeds. Signed-off-by: Olav Haugan Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed