staging: bcm2835-codec: NULL component handle on queue_setup failure
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Tue, 19 Mar 2019 17:55:09 +0000 (17:55 +0000)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:22 +0000 (00:08 +0100)
commit577caecb26a35e33d682b5f8fa5bc6189a3ee2f1
tree3876cad7dc2ca8132e03210e0c45a27025f72fa3
parentee047646b9300c8260268cdf5d64d735a6594483
staging: bcm2835-codec: NULL component handle on queue_setup failure

queue_setup tries creating the relevant MMAL component and configures
the input and output ports as we're expecting to start streaming.
If the port configuration failed then it destroyed the component,
but failed to clear the component handle, therefore release tried
destroying the component again.
Adds some logging should the port config fail as well.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c