Message ID | 20181003181506.17682-3-vishal.l.verma@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [ndctl,v2,1/5] ndctl, lib: refactor badblocks retrieval routines | expand |
diff --git a/util/json.c b/util/json.c index 2d15859..30b56c3 100644 --- a/util/json.c +++ b/util/json.c @@ -470,7 +470,7 @@ struct json_object *util_region_badblocks_to_json(struct ndctl_region *region, /* get start address of region */ addr = ndctl_region_get_resource(region); - if (addr == ULONG_MAX) + if (addr == ULLONG_MAX) goto err_array; /* get address of bad block */