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

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

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

parents 9a8238f5 9c464681
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1776,7 +1776,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,