summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-08-05 05:11:13 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-14 10:10:28 -0800
commit768147da5b9a688fe3357cdadcbb17aca2a7216d (patch)
tree6bef4303a02bf28f9b4e2eed1399d4fc58c3974d /arch
parent534d3b6e0b33844e1ce8693f6ca65d1f9fc65d39 (diff)
media: vmalloc_sg: off by one in error handling
commit 23d3090f8b44ab42162e99e8584445bc25b8922f upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions