From: Roland Dreier Date: Mon, 16 Jul 2012 22:34:22 +0000 (-0700) Subject: target: Add range checking to UNMAP emulation X-Git-Tag: v3.6-rc1~156^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2594e29865c291db162313187612cd9f14538f33;p=pandora-kernel.git target: Add range checking to UNMAP emulation When processing an UNMAP command, we need to make sure that the number of blocks we're asked to UNMAP does not exceed our reported maximum number of blocks per UNMAP, and that the range of blocks we're unmapping doesn't go past the end of the device. Signed-off-by: Roland Dreier Cc: stable@vger.kernel.org Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed