From 0e753e3edf4db6a273fc4e8429ee13ea4741e0e6 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 23 Apr 2010 14:03:44 +0200 Subject: [PATCH] libblkid: reset superblocks result after error Signed-off-by: Karel Zak --- shlibs/blkid/src/superblocks/superblocks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.39.5