[Drbd-dev] ko-count overflow
Apollonskiy Evgeniy
apollonskiy.e at digdes.com
Fri Feb 24 14:28:29 CET 2012
Hello,
There is a strange code fragment in drbd_main.c:
drop_it = !--mdev->ko_count;
if (!drop_it) {
dev_err(DEV, "[%s/%d] sock_sendmsg time expired, ko = %u\n",
current->comm, current->pid, mdev->ko_count);
request_ping(mdev);
}
Default value of ko_count is 0, so --mdev->ko_count will be equal to
4294967295 (ko_count is unsigned int).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-dev/attachments/20120224/8e3a762d/attachment.htm>
More information about the drbd-dev
mailing list