1 From bd76661620e6389823baf3a64d47996923133604 Mon Sep 17 00:00:00 2001
2 From: Dan Carpenter <dan.carpenter@oracle.com>
3 Date: Mon, 17 Dec 2018 10:08:54 +0300
4 Subject: [PATCH 475/773] staging: bcm2835-audio: double free in init error
7 commit 136ff5e49271c4c8fceeca5491c48e66b961564b upstream.
9 We free instance here and in the caller. It should be only the caller
12 Fixes: d7ca3a71545b ("staging: bcm2835-audio: Operate non-atomic PCM ops")
13 Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
14 Reviewed-by: Takashi Iwai <tiwai@suse.de>
15 Cc: stable <stable@vger.kernel.org>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 1 -
19 1 file changed, 1 deletion(-)
21 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c
22 +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c
23 @@ -145,7 +145,6 @@ vc_vchi_audio_init(VCHI_INSTANCE_T vchi_
24 dev_err(instance->dev,
25 "failed to open VCHI service connection (status=%d)\n",