diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2014-10-24 13:18:40 +0300 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2014-10-27 13:00:54 +0100 |
commit | 800a85d3d286604b8c539ca7ee90b992316fd2a7 (patch) | |
tree | c284df76d08f4cac4d8e4aa8e746178853efc137 /mm/mprotect.c | |
parent | f022d8cb7ec70fe8edd56383d876001317ee76b1 (diff) | |
download | linux-800a85d3d286604b8c539ca7ee90b992316fd2a7.tar.gz linux-800a85d3d286604b8c539ca7ee90b992316fd2a7.tar.bz2 linux-800a85d3d286604b8c539ca7ee90b992316fd2a7.zip |
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 <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions