staging: bcm2835-audio: double free in init error path
Subsystems (4)
PATCH 1/1 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 d7ca3a71545b ("staging: bcm2835-audio: Operate non-atomic PCM ops")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c +0 -1
@@ -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 ; }
Signature · 1 line
2.17.1
Quoted 6 lines · Dan Carpenter
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 <[email protected]>
Reviewed-by Takashi Iwai <[email protected]>
thanks,
Takashi
Quoted 19 lines
--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 1 - 1 file changed, 1 deletion(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c +0
-1@@ -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 ; }Signature · 1 line
2.17.1