Skip to content
Snippets Groups Projects
Commit b6a9b11d authored by Chenjie Luo's avatar Chenjie Luo Committed by Android Partner Code Review
Browse files

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

Merge "video: adf: zero out mapping data on adf_buffer_map() failure" into android-msm-sturgeon-3.10-emr1
parents 1c4580de 4436de7a
No related branches found
No related tags found
No related merge requests found
...@@ -305,8 +305,10 @@ static int adf_buffer_map(struct adf_device *dev, struct adf_buffer *buf, ...@@ -305,8 +305,10 @@ static int adf_buffer_map(struct adf_device *dev, struct adf_buffer *buf,
} }
done: done:
if (ret < 0) if (ret < 0) {
adf_buffer_mapping_cleanup(mapping, buf); adf_buffer_mapping_cleanup(mapping, buf);
memset(mapping, 0, sizeof(*mapping));
}
return ret; return ret;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment