Unverified Commit c5ab9da2 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!6411 [sync] PR-5195: dmaengine: fix NULL pointer in channel unregistration function

parents 8ba92083 450b12fb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1107,6 +1107,9 @@ EXPORT_SYMBOL_GPL(dma_async_device_channel_register);
static void __dma_async_device_channel_unregister(struct dma_device *device,
						  struct dma_chan *chan)
{
	if (chan->local == NULL)
		return;

	WARN_ONCE(!device->device_release && chan->client_count,
		  "%s called while %d clients hold a reference\n",
		  __func__, chan->client_count);