On Fri, 18 Jul 2014, Tomas Henzl wrote:

> > +   if (src_sector + nr_sects < src_sector ||
> > +       dst_sector + nr_sects < dst_sector)
> > +           return -EINVAL;
> 
> Hi Mikulas,
> this^ is meant as an overflow test or what is the reason?
> Thanks, Tomas

Yes. It is a test for overflow.

Mikulas
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to