From: Karel Zak Date: Fri, 23 Apr 2010 12:03:44 +0000 (+0200) Subject: libblkid: reset superblocks result after error X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e753e3edf4db6a273fc4e8429ee13ea4741e0e6;p=util-linux libblkid: reset superblocks result after error Signed-off-by: Karel Zak --- diff --git a/shlibs/blkid/src/superblocks/superblocks.c b/shlibs/blkid/src/superblocks/superblocks.c index b46e5963..1d952737 100644 --- a/shlibs/blkid/src/superblocks/superblocks.c +++ b/shlibs/blkid/src/superblocks/superblocks.c @@ -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 */