commit | c7843e8f565f624b0cff7cad1370fad4cb84dfbc | [log] [tgz] |
---|---|---|
author | Mark Lord <liml@rtr.ca> | Wed Jun 18 21:57:42 2008 -0400 |
committer | Jeff Garzik <jgarzik@redhat.com> | Fri Jul 04 09:07:12 2008 -0400 |
tree | 0f8f663485fc6f7bd248d86dea7e69cd3c8b6324 | |
parent | a836d3e882161c562b3ddacee5d8842a033c5b2c [diff] |
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>