]> err.no Git - util-linux/commitdiff
libblkid: reset superblocks result after error
authorKarel Zak <kzak@redhat.com>
Fri, 23 Apr 2010 12:03:44 +0000 (14:03 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 23 Apr 2010 12:03:44 +0000 (14:03 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/superblocks/superblocks.c

index b46e59633b7098932c95ad994df2f3b02f192ee9..1d952737ab76024a1856a3bd3d34e6e0e26e31ec 100644 (file)
@@ -427,8 +427,10 @@ static int superblocks_probe(blkid_probe pr, struct blkid_chain *chn)
                /* final check by probing function */
                if (id->probefunc) {
                        DBG(DEBUG_LOWPROBE, printf("\tcall probefunc()\n"));
-                       if (id->probefunc(pr, mag) != 0)
+                       if (id->probefunc(pr, mag) != 0) {
+                               blkid_probe_chain_reset_vals(pr, chn);
                                continue;
+                       }
                }
 
                /* all cheks passed */