Whamcloud - gitweb
Fix XFS superblock definition. Add support to
[tools/e2fsprogs.git] / lib / blkid / devname.c
index df77001..3a00146 100644 (file)
@@ -129,7 +129,8 @@ static void probe_one(blkid_cache cache, const char *ptname,
 set_pri:
        if (!pri && !strncmp(ptname, "md", 2))
                pri = BLKID_PRI_MD;
-       dev->bid_pri = pri;
+       if (dev)
+               dev->bid_pri = pri;
        return;
 }