Author: adrian.chadd
Date: Mon Jul 13 05:12:05 2009
New Revision: 14190

Modified:
    playpen/LUSCA_HEAD_storework/src/fs/aufs/store_rebuild_aufs.c

Log:
Fix an off-by-one style comparison issue.



Modified: playpen/LUSCA_HEAD_storework/src/fs/aufs/store_rebuild_aufs.c
==============================================================================
--- playpen/LUSCA_HEAD_storework/src/fs/aufs/store_rebuild_aufs.c       
(original)
+++ playpen/LUSCA_HEAD_storework/src/fs/aufs/store_rebuild_aufs.c       Mon Jul 
 
13 05:12:05 2009
@@ -280,7 +280,7 @@

        /* We have some data; process what we can */
        i = 0;
-       while (i + sizeof(storeSwapLogData) < rb->rbuf.used) {
+       while (i + sizeof(storeSwapLogData) <= rb->rbuf.used) {
                memcpy(&s, rb->rbuf.buf + i, sizeof(storeSwapLogData));
                switch (s.op) {
                        case SWAP_LOG_VERSION:

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to