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

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

Merge "video: adf: zero out mapping data on adf_buffer_map() failure"

parents 1c72b69e c828fb7d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -305,8 +305,10 @@ static int adf_buffer_map(struct adf_device *dev, struct adf_buffer *buf,
	}

done:
	if (ret < 0)
	if (ret < 0) {
		adf_buffer_mapping_cleanup(mapping, buf);
		memset(mapping, 0, sizeof(*mapping));
	}

	return ret;
}