libblkid: (udf) fix possible null pointer dereference [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
b3eff5dd74
commit
6acde8a3b1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue