diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-07-06 12:02:04 +0200 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-07-06 12:02:04 +0200 |
commit | cc2caea5b6152b8ce66dc2bbe83dc72b60612da8 (patch) | |
tree | c39d09978bd8f2f7f29771b80b4064e2aabd5d2d /include | |
parent | 6a6dccba2fdc2a69f1f36b8f1c0acc8598e7221b (diff) | |
download | linux-3.10-cc2caea5b6152b8ce66dc2bbe83dc72b60612da8.tar.gz linux-3.10-cc2caea5b6152b8ce66dc2bbe83dc72b60612da8.tar.bz2 linux-3.10-cc2caea5b6152b8ce66dc2bbe83dc72b60612da8.zip |
mm: cma: fix condition check when setting global cma area
dev_set_cma_area incorrectly assigned cma to global area on first call
due to incorrect check. This patch fixes this issue.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/dma-contiguous.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/dma-contiguous.h b/include/asm-generic/dma-contiguous.h index c544356b374..294b1e755ab 100644 --- a/include/asm-generic/dma-contiguous.h +++ b/include/asm-generic/dma-contiguous.h @@ -18,7 +18,7 @@ static inline void dev_set_cma_area(struct device *dev, struct cma *cma) { if (dev) dev->cma_area = cma; - if (!dev || !dma_contiguous_default_area) + if (!dev && !dma_contiguous_default_area) dma_contiguous_default_area = cma; } |