Signed-off-by: Boris Egorov <egorov@xxxxxxxxx> --- disk-utils/fdisk.c | 1 + libblkid/src/superblocks/nilfs.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index e5fe31b..7d6951d 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -779,6 +779,7 @@ int main(int argc, char **argv) if (!lb) errx(EXIT_FAILURE, _("unsupported disklabel: %s"), optarg); fdisk_label_set_disabled(lb, 0); + break; } case 'u': if (optarg && *optarg == '=') diff --git a/libblkid/src/superblocks/nilfs.c b/libblkid/src/superblocks/nilfs.c index 7b87717..3f03901 100644 --- a/libblkid/src/superblocks/nilfs.c +++ b/libblkid/src/superblocks/nilfs.c @@ -97,7 +97,7 @@ static int probe_nilfs2(blkid_probe pr, const struct blkid_idmag *mag) /* backup */ sbb = (struct nilfs_super_block *) blkid_probe_get_buffer( pr, ((pr->size / 0x200) - 8) * 0x200, sizeof(struct nilfs_super_block)); - if (!sbp) + if (!sbb) return errno ? -errno : 1; /* -- 2.1.3 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html