From: Laurent Pinchart Date: Fri, 24 Oct 2014 10:18:40 +0000 (+0300) Subject: mm: cma: Always consider a 0 base address reservation as dynamic X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~163^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=800a85d3d286604b8c539ca7ee90b992316fd2a7;p=pandora-kernel.git mm: cma: Always consider a 0 base address reservation as dynamic The fixed parameter to cma_declare_contiguous() tells the function whether the given base address must be honoured or should be considered as a hint only. The API considers a zero base address as meaning any base address, which must never be considered as a fixed value. Part of the implementation correctly checks both fixed and base != 0, but two locations check the fixed value only. Set fixed to false when base is 0 to fix that and simplify the code. Signed-off-by: Laurent Pinchart Acked-by: Michal Nazarewicz Signed-off-by: Marek Szyprowski --- Reading git-diff-tree failed