]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: bug on back kmap
authorSage Weil <sage@newdream.net>
Wed, 29 Jul 2009 00:02:22 +0000 (17:02 -0700)
committerSage Weil <sage@newdream.net>
Wed, 29 Jul 2009 00:02:22 +0000 (17:02 -0700)
src/kernel/messenger.c

index a9d71458864ca7aa001905e04cca614579039fd1..82c8114f0984f076b24349c124ac9a1cc9ae688a 100644 (file)
@@ -893,6 +893,7 @@ static int write_partial_msg_pages(struct ceph_connection *con)
                        void *base = kaddr + con->out_msg_pos.page_pos;
                        u32 tmpcrc = le32_to_cpu(con->out_msg->footer.data_crc);
 
+                       BUG_ON(kaddr == NULL);
                        con->out_msg->footer.data_crc =
                                cpu_to_le32(crc32c(tmpcrc, base, len));
                        con->out_msg_pos.did_page_crc = 1;