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

!5195 dmaengine: fix NULL pointer in channel unregistration function

parents 65290775 3923c8f0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1108,6 +1108,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);