From: Kent Overstreet Date: Fri, 12 Oct 2012 20:18:27 +0000 (-0700) Subject: block: Fix a buffer overrun in bio_integrity_split() X-Git-Tag: omap-for-v3.10/fixes-for-merge-window-part2~11^2~8^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fda981cafbf908acd11e1e636fec50e99d56a47;p=pandora-kernel.git block: Fix a buffer overrun in bio_integrity_split() bio_integrity_split() seemed to be confusing pointers and arrays - bip_vec in bio_integrity_payload was an array appended to the end of the payload, so the bio_vecs in struct bio_pair should have come after the bio_integrity_payload they're for. Fix it by making bip_vec a pointer to the inline vecs - a later patch is going to make more use of this pointer. Signed-off-by: Kent Overstreet CC: Jens Axboe CC: Martin K. Petersen --- Reading git-diff-tree failed