summaryrefslogtreecommitdiffstats
path: root/lib/proportions.c
diff options
context:
space:
mode:
authorMark Lord <liml@rtr.ca>2008-06-19 03:57:42 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-07-04 15:07:12 +0200
commitc7843e8f565f624b0cff7cad1370fad4cb84dfbc (patch)
tree0f8f663485fc6f7bd248d86dea7e69cd3c8b6324 /lib/proportions.c
parentlibata-sff: improve HSM violation reporting (diff)
downloadlinux-c7843e8f565f624b0cff7cad1370fad4cb84dfbc.tar.xz
linux-c7843e8f565f624b0cff7cad1370fad4cb84dfbc.zip
sata_mv: safer logic for limit_warnings
There is a miniscule chance that two separate host controllers might be in sata_mv at the same time and manage to decrement the static limit_warnings variable below zero. Fix the comparison to deal with it. Signed-off-by: Mark Lord <mlord@pobox.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'lib/proportions.c')
0 files changed, 0 insertions, 0 deletions