]> err.no Git - util-linux/commit
libblkid: fix infinite loop when probe chain bails out early
authorColin Watson <cjwatson@canonical.com>
Sat, 13 Mar 2010 00:46:35 +0000 (00:46 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Mar 2010 08:14:21 +0000 (09:14 +0100)
commitcd571826636ae5c74c31ed66dab1ffd6c5d35bbc
treede5183723fe7111c22d8dcb7ec848789e45c4998
parentaaf08b7fbfb195c27b1e521a6a3e56fbde26bb01
libblkid: fix infinite loop when probe chain bails out early

The superblocks probe bails out early with no results in some cases.  If
this happens, blkid_do_probe needs to go to the next chain, rather than
entering an infinite loop calling superblocks_probe over and over again.

[kzak@redhat.com: - print debug message always when leaving
                    superblocks_probe()]

Addresses: https://bugs.launchpad.net/bugs/528073
Signed-off-by: Colin Watson <cjwatson@canonical.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/probe.c
shlibs/blkid/src/superblocks/superblocks.c