staging: bcm2835-audio: double free in init error path
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Dec 2018 07:08:54 +0000 (10:08 +0300)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:32 +0000 (00:08 +0100)
commite5b24439ee51039de5798f43520e4fe88e0f817c
tree24303f416c1e1573f90ac4adbaa6a05d0f62a4c7
parent80ec8e12daee498aba2d1c47d4815f6826d3400e
staging: bcm2835-audio: double free in init error path

commit 136ff5e49271c4c8fceeca5491c48e66b961564b upstream.

We free instance here and in the caller.  It should be only the caller
which handles it.

Fixes: d7ca3a71545b ("staging: bcm2835-audio: Operate non-atomic PCM ops")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c