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

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

Merge "ASoC: msm-lsm-client: use kzalloc instead of kmalloc"

parents b63dc0fb 0aeadd43
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1333,7 +1333,7 @@ static int msm_lsm_ioctl_compat(struct snd_pcm_substream *substream,
		}

		size = sizeof(*user) + userarg32.payload_size;
		user = kmalloc(size, GFP_KERNEL);
		user = kzalloc(size, GFP_KERNEL);
		if (!user) {
			dev_err(rtd->dev,
				"%s: Allocation failed event status size %d\n",
@@ -1354,7 +1354,7 @@ static int msm_lsm_ioctl_compat(struct snd_pcm_substream *substream,
			err = -EFAULT;
		}
		if (!err) {
			user32 = kmalloc(size, GFP_KERNEL);
			user32 = kzalloc(size, GFP_KERNEL);
			if (!user32) {
				dev_err(rtd->dev,
					"%s: Allocation event user status size %d\n",
@@ -1399,7 +1399,7 @@ static int msm_lsm_ioctl_compat(struct snd_pcm_substream *substream,
		}

		size = sizeof(*user) + userarg32.payload_size;
		user = kmalloc(size, GFP_KERNEL);
		user = kzalloc(size, GFP_KERNEL);
		if (!user) {
			dev_err(rtd->dev,
				"%s: Allocation failed event status size %d\n",
@@ -1419,7 +1419,7 @@ static int msm_lsm_ioctl_compat(struct snd_pcm_substream *substream,
			err = -EFAULT;
		}
		if (!err) {
			user32 = kmalloc(size, GFP_KERNEL);
			user32 = kzalloc(size, GFP_KERNEL);
			if (!user32) {
				dev_err(rtd->dev,
					"%s: Allocation event user status size %d\n",
@@ -1834,7 +1834,7 @@ static int msm_lsm_ioctl(struct snd_pcm_substream *substream,

		size = sizeof(struct snd_lsm_event_status) +
		userarg.payload_size;
		user = kmalloc(size, GFP_KERNEL);
		user = kzalloc(size, GFP_KERNEL);
		if (!user) {
			dev_err(rtd->dev,
				"%s: Allocation failed event status size %d\n",
@@ -1894,7 +1894,7 @@ static int msm_lsm_ioctl(struct snd_pcm_substream *substream,

		size = sizeof(struct snd_lsm_event_status_v3) +
			userarg.payload_size;
		user = kmalloc(size, GFP_KERNEL);
		user = kzalloc(size, GFP_KERNEL);
		if (!user) {
			dev_err(rtd->dev,
				"%s: Allocation failed event status size %d\n",