[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87a7a3zq03.fsf@kamboji.qca.qualcomm.com>
Date: Mon, 14 Oct 2019 11:32:28 +0300
From: Kalle Valo <kvalo@...eaurora.org>
To: Bjorn Andersson <bjorn.andersson@...aro.org>
Cc: netdev@...r.kernel.org, linux-wireless@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org,
ath10k@...ts.infradead.org,
Niklas Cassel <niklas.cassel@...aro.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH] ath10k: Correct error check of dma_map_single()
Bjorn Andersson <bjorn.andersson@...aro.org> writes:
> On Fri 11 Oct 04:57 PDT 2019, Kalle Valo wrote:
>
>> Bjorn Andersson <bjorn.andersson@...aro.org> wrote:
>>
>> > The return value of dma_map_single() should be checked for errors using
>> > dma_mapping_error(), rather than testing for NULL. Correct this.
>> >
>> > Fixes: 1807da49733e ("ath10k: wmi: add management tx by reference
>> > support over wmi")
>> > Cc: stable@...r.kernel.org
>> > Reported-by: Niklas Cassel <niklas.cassel@...aro.org>
>> > Signed-off-by: Bjorn Andersson <bjorn.andersson@...aro.org>
>>
>> Did this fix any real bug? Or is this just something found during code review?
>>
>
> CONFIG_DMA_API_DEBUG screamed at us for calling dma_unmap_single()
> without ever having called dma_mapping_error() on the return value.
Ok, I'll add something about to the commit log in v2 so that the
background is also documented.
--
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists