mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
staging: bcm2835-audio: double free in init error path
We free instance here and in the caller. It should be only the caller
which handles it.
Fixes: d7ca3a7154 ("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>
This commit is contained in:
parent
4765f68374
commit
649496b603
|
|
@ -138,7 +138,6 @@ vc_vchi_audio_init(VCHI_INSTANCE_T vchi_instance,
|
|||
dev_err(instance->dev,
|
||||
"failed to open VCHI service connection (status=%d)\n",
|
||||
status);
|
||||
kfree(instance);
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user