Fix for access beyond end of device error
[zfs.git] / module / zfs / arc.c
index f8dfee2..32d99bf 100644 (file)
@@ -2777,7 +2777,7 @@ top:
                uint64_t size = BP_GET_LSIZE(bp);
                arc_callback_t  *acb;
                vdev_t *vd = NULL;
-               daddr_t addr = -1;
+               uint64_t addr = -1;
                boolean_t devw = B_FALSE;
 
                if (hdr == NULL) {