summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorDan Carpenter2014-08-05 10:11:13 +0200
committerMauro Carvalho Chehab2014-08-21 22:25:31 +0200
commit23d3090f8b44ab42162e99e8584445bc25b8922f (patch)
tree15421dc527d48d630fd926566e766d1c30679312 /include/media
parent[media] as102-fe: Add a release function (diff)
downloadkernel-qcow2-linux-23d3090f8b44ab42162e99e8584445bc25b8922f.tar.gz
kernel-qcow2-linux-23d3090f8b44ab42162e99e8584445bc25b8922f.tar.xz
kernel-qcow2-linux-23d3090f8b44ab42162e99e8584445bc25b8922f.zip
[media] vmalloc_sg: off by one in error handling
The "i--" needs to happen at the start of the loop or it will try to release something bogus (probably it will crash) and it won't release the first ->vaddr_page[]. Fixes: 7b4eeed174b7 ('[media] vmalloc_sg: make sure all pages in vmalloc area are really DMA-ready') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions