Re: [PATCH] cifs: Fix cifs_limit_bvec_subset() to correctly check the maxmimum size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shyam Prasad N <nspmangalore@xxxxxxxxx> wrote:

> > +               max_size -= len;
> 
> Shouldn't this decrement happen below, after the span has been
> compared with max_size?

It probably doesn't matter.  The compiler is free to move it around, but yes
that and ix++ can both be moved down.

David




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux