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

Commit 7ce88052 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds" into msm-4.9

parents 8036cdae 80b5294d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -236,7 +236,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();