We want changeset 11860 from xen-unstable. [BLOCK] blkback: Fix first_sect check The blkback code checks first_sect by computing last_sect - first_sect + 1. If this is not positive then the request is rejected. Unfortunately, the calculation is stored in an unsigned integer before the check is made so negative values will not be rejected. This patch fixes this by explictly comparing first_sect with last_sect. The blktap code is similar but it stores the difference in a signed integer so it's OK. Signed-off-by: Herbert Xu <herbert.org.au>
in 2.6.18-1.2817.el5
QE ack for RHEL5.
2.6.18-7.el5 included in 20070125.0.