From: Mikulas Patocka Date: Wed, 1 Oct 2008 13:39:24 +0000 (+0100) Subject: dm: cope with access beyond end of device in dm_merge_bvec X-Git-Tag: v2.6.27-rc9~48^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b01cd5ac43b00c49759c126c21e7d22c7e80b245;p=pandora-kernel.git dm: cope with access beyond end of device in dm_merge_bvec If for any reason dm_merge_bvec() is given an offset beyond the end of the device, avoid an oops and always allow one page to be added to an empty bio. We'll reject the I/O later after the bio is submitted. Signed-off-by: Mikulas Patocka Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed