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

Commit df01e141 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds"

parents 8a83c059 086cf381
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -234,7 +234,8 @@ static s32 _volume_cmds_alloc1(s32 size)
	if (_vol_cmds) {
		_vol_cmds_d = kzalloc(_vol_cmd_cnt * sizeof(struct vol_cmds_d),
					GFP_KERNEL);
	}
	} else
		_vol_cmd_cnt = 0;
	if (_vol_cmds_d)
		return 0;
	_volume_cmds_free();