Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 063bca09 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Fix NULL dereference in error path of patch_ca0132.c



Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e97249dd
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1960,10 +1960,8 @@ static int dspxfr_image(struct hda_codec *codec,
		return -EINVAL;

	dma_engine = kzalloc(sizeof(*dma_engine), GFP_KERNEL);
	if (!dma_engine) {
		status = -ENOMEM;
		goto exit;
	}
	if (!dma_engine)
		return -ENOMEM;
	memset((void *)dma_engine, 0, sizeof(*dma_engine));

	dma_engine->dmab = kzalloc(sizeof(*dma_engine->dmab), GFP_KERNEL);