atm: idt77252: fix a memleak in open_card_ubr0
[platform/kernel/linux-rpi.git] / fs / ceph / file.c
index b1da02f..b5f8038 100644 (file)
@@ -2969,7 +2969,7 @@ static ssize_t __ceph_copy_file_range(struct file *src_file, loff_t src_off,
                ret = do_splice_direct(src_file, &src_off, dst_file,
                                       &dst_off, src_objlen, flags);
                /* Abort on short copies or on error */
-               if (ret < src_objlen) {
+               if (ret < (long)src_objlen) {
                        dout("Failed partial copy (%zd)\n", ret);
                        goto out;
                }