imsm: fix activate_spare off-by-one
authorDan Williams <dan.j.williams@intel.com>
Sat, 1 Aug 2009 00:11:41 +0000 (17:11 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 1 Aug 2009 00:11:41 +0000 (17:11 -0700)
commit329c82786932b2fbc56cd57ac0bfc185d83a04c9
tree973e3d1598efe93e20023d0d4a74d0b1b5aa814a
parent9b1fb67776d63a491df3e7aa13916cd122436e20
imsm: fix activate_spare off-by-one

The last sector of an array is calculated by start + size - 1.

Reported-by: Rafal Marszewski <rafal.marszewski@intel.com>
Reported-by: Jarema Bielanski <jarema.bielanski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
super-intel.c