Thread (7 messages) flat view 7 messages, 3 authors, 2017-06-13

[PATCH] arm64/dma-mapping: Fix null-pointer check

From: Olav Haugan <hidden>
Date: 2017-06-12 20:36:22
Also in: lkml

On 17-06-10 23:03:54, Russell King - ARM Linux wrote:
On Sat, Jun 10, 2017 at 12:41:10PM -0700, Olav Haugan wrote:
quoted
@@ -149,6 +140,11 @@ static void *__dma_alloc(struct device *dev, size_t size,
 	bool coherent = is_device_dma_coherent(dev);
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This re-introduces an instance that you say you're getting rid of...
The ARM64 version of is_device_dma_coherent() checks for !dev
already...But anyway I will completely remove the !dev checks in the
alloc/free functions since as Catalin pointed out it is coverted
elsewhere.

-- 
.Olav

The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help