]> git.pld-linux.org Git - packages/util-linux.git/blob - fix-crash-on-fdisk-l.patch
- fix crash on fdisk -l
[packages/util-linux.git] / fix-crash-on-fdisk-l.patch
1 From b2cfdbb023ad06afec00ad44761e244d74119034 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen@delfi.ee>
3 Date: Tue, 6 Mar 2012 12:19:41 +0200
4 Subject: [PATCH] fix crash on fdisk -l
5
6 ---
7  libblkid/src/topology/sysfs.c |    4 ++--
8  1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/libblkid/src/topology/sysfs.c b/libblkid/src/topology/sysfs.c
11 index e62b84c..41be036 100644
12 --- a/libblkid/src/topology/sysfs.c
13 +++ b/libblkid/src/topology/sysfs.c
14 @@ -76,7 +76,7 @@ static int probe_sysfs_tp(blkid_probe pr,
15                                 }
16                         }
17                         if (!ok)
18 -                               continue;       /* attrinute does not exist */
19 +                               continue;       /* attribute does not exist */
20                 }
21  
22                 if (val->set_ulong) {
23 @@ -102,7 +102,7 @@ static int probe_sysfs_tp(blkid_probe pr,
24  
25  done:
26         sysfs_deinit(&sysfs);
27 -       if (disk)
28 +       if (disk && disk != dev)
29                 sysfs_deinit(&parent);
30         if (count)
31                 return 0;               /* success */
32 -- 
33 1.7.9.2
34
This page took 0.041001 seconds and 3 git commands to generate.