Merge "video: adf: zero out mapping data on adf_buffer_map() failure"
This commit is contained in:
commit
1acb54a652
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue