git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6a9ce6
)
md: raid5: avoid sector values going negative when testing reshape progress.
author
NeilBrown
<neilb@suse.de>
Tue, 26 May 2009 02:41:08 +0000
(12:41 +1000)
committer
NeilBrown
<neilb@suse.de>
Tue, 26 May 2009 02:41:08 +0000
(12:41 +1000)
As sector_t in unsigned, we cannot afford to let 'safepos' etc go
negative.
So replace
a -= b;
by
a -= min(b,a);
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c
patch
|
blob
|
history
diff --cc
drivers/md/raid5.c
Simple merge