diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 3a732ac952850eec6df7052b34f87f21070e8168..7ea9184eaa13eaa0ad444cbab396d7c32bea749e 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -1237,6 +1237,9 @@ static inline struct dma_chan if (chan) return chan; + if (!fn || !fn_param) + return NULL; + return __dma_request_channel(mask, fn, fn_param); } #endif /* DMAENGINE_H */