diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2004-11-18 22:54:35 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-18 22:54:35 -0800 |
| commit | 2f8b7fcfca8b477d91d216f79625cdb3aa92ec5c (patch) | |
| tree | 1b5e39c2d3ba9a001ffa88917bb020ab8ab6049c /include | |
| parent | c2234eee5c898eb2e2e8b11d4705ddb78eb2a751 (diff) | |
[PATCH] md: Fix problem with unsigned variable going "negative" in linear.c
We replace 'size' by 'start'. 'start' means exactly the same as
'curr_offset - size', and the equivalence of the new code can be tested
based on this. The difference is that 'start' will never be negative and
so can fit in a 'sector_t' while 'size' could be negative.
Also make curr_offset sector_t, as it should have been.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
