vop: vringh: Do not crash if no DMA channel
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Wed, 16 Jan 2019 16:32:50 +0000 (17:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 10:43:17 +0000 (11:43 +0100)
commit417406f2bd5415685663eb1c618744bce3b3584e
tree5004021b98e3a5e2a9ab7b9d5a325c731999d37c
parent96c12ef9b905237978855d582eff6b4dee152f52
vop: vringh: Do not crash if no DMA channel

Fallback gracefully if no DMA channel is provided instead of
dereferencing NULL pointers.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/vop/vop_vringh.c