diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-02-13 14:17:04 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-02-13 14:17:04 +0000 |
commit | 5e4f2349184f73a3c215844d1e6d2c71b7d26dd8 (patch) | |
tree | d1391ebf97739f885857fabedacef31b7757cb64 /daemons/dmeventd/plugins | |
parent | e587cb6ac5e9f7544b2a204b2b9600b402b25ef0 (diff) | |
download | lvm2-5e4f2349184f73a3c215844d1e6d2c71b7d26dd8.tar.gz lvm2-5e4f2349184f73a3c215844d1e6d2c71b7d26dd8.tar.xz lvm2-5e4f2349184f73a3c215844d1e6d2c71b7d26dd8.zip |
Make sure dereferenced words[0] and words[1] are defined
Diffstat (limited to 'daemons/dmeventd/plugins')
-rw-r--r-- | daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c b/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c index 18fa3904..0c59e340 100644 --- a/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c +++ b/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c @@ -144,7 +144,8 @@ static void _umount(const char *device, int major, int minor) break; /* eof, likely */ /* words[0] is the mount point and words[1] is the device path */ - dm_split_words(buffer, 3, 0, words); + if (dm_split_words(buffer, 3, 0, words) < 2) + continue; /* find the major/minor of the device */ if (stat(words[0], &st)) |