commit | 23d3090f8b44ab42162e99e8584445bc25b8922f | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Aug 05 05:11:13 2014 -0300 |
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | Thu Aug 21 15:25:31 2014 -0500 |
tree | 15421dc527d48d630fd926566e766d1c30679312 | |
parent | 5b6aa199196220a5901c8d9cbad497fea347850a [diff] |
[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>