libblkid: (udf) fix possible null pointer dereference [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2013-03-27 16:02:07 +01:00
parent b3eff5dd74
commit 6acde8a3b1
1 changed files with 2 additions and 1 deletions

View File

@ -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;