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

Commit 9e5b5802 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents c0f77713 2549f055
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1815,7 +1815,7 @@ static ssize_t ipa3_read_nat4(struct file *file,

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

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