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

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

Merge "msm: ipa3: Return -ENOMEM on memory allocation failure"

parents e5a72ad3 a9ec3893
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1771,7 +1771,7 @@ static ssize_t ipa3_read_nat4(struct file *file,


	buff = kzalloc(buff_size, GFP_KERNEL);
	buff = kzalloc(buff_size, GFP_KERNEL);
	if (buff == NULL)
	if (buff == NULL)
		return 0;
		return -ENOMEM;


	if (!ipa3_ctx->nat_mem.dev.is_dev_init) {
	if (!ipa3_ctx->nat_mem.dev.is_dev_init) {
		pos += scnprintf(buff + pos, buff_size - pos,
		pos += scnprintf(buff + pos, buff_size - pos,