From: Dan Carpenter Date: Tue, 5 Aug 2014 08:11:13 +0000 (-0300) Subject: [media] vmalloc_sg: off by one in error handling X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~445 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23d3090f8b44ab42162e99e8584445bc25b8922f;p=pandora-kernel.git [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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed