linux/drivers/staging/zsmalloc
Olav Haugan 67296874eb 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 <ohaugan@codeaurora.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-11-25 12:52:45 -08:00
..
Kconfig zsmalloc: Fix "map_vm_area" undefined reference errors. 2013-10-11 15:23:13 -07:00
Makefile
zsmalloc-main.c staging: zsmalloc: Ensure handle is never 0 on success 2013-11-25 12:52:45 -08:00
zsmalloc.h staging/zsmalloc: Fixed up incorrect formatted comments 2013-05-21 10:30:10 -07:00