]> 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>
Sun, 14 Mar 2010 21:45:40 +0000 (22:45 +0100)
commit046959cca19be0b1e489bae66314fcf6047fe4c5
tree28ad1a03d176be505c0ce054bfc0725df735b7f5
parent594c3d1ba45cee79fffde3a42d7c8b84d5b7292f
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