diff options
-rw-r--r-- | libblkid/src/superblocks/udf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libblkid/src/superblocks/udf.c b/libblkid/src/superblocks/udf.c index c9fb02285..8702dd04b 100644 --- a/libblkid/src/superblocks/udf.c +++ b/libblkid/src/superblocks/udf.c @@ -154,7 +154,8 @@ real_blksz: blkid_probe_get_buffer(pr, (blkid_loff_t) (loc + b) * bs, sizeof(*vd)); - + if (!vd) + return -1; type = le16_to_cpu(vd->tag.id); if (type == 0) break; |