All of lore.kernel.org
 help / color / mirror / Atom feed
* master - libdm: fix <backtrace> in dm_stats_get_nr_regions
@ 2016-07-05 18:55 Bryn Reeves
  0 siblings, 0 replies; 2+ messages in thread
From: Bryn Reeves @ 2016-07-05 18:55 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=53e92441a613270750c12089b119337a71ff545a
Commit:        53e92441a613270750c12089b119337a71ff545a
Parent:        cf0fa3d69319755be0d6fb0c7f692f89e49f5881
Author:        Bryn M. Reeves <bmr@redhat.com>
AuthorDate:    Tue Jul 5 18:33:02 2016 +0100
Committer:     Bryn M. Reeves <bmr@redhat.com>
CommitterDate: Tue Jul 5 19:53:17 2016 +0100

libdm: fix <backtrace> in dm_stats_get_nr_regions

---
 libdm/libdm-stats.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c
index 93b8e0b..ab15589 100644
--- a/libdm/libdm-stats.c
+++ b/libdm/libdm-stats.c
@@ -2132,8 +2132,12 @@ void dm_stats_buffer_destroy(struct dm_stats *dms, char *buffer)
 
 uint64_t dm_stats_get_nr_regions(const struct dm_stats *dms)
 {
-	if (!dms || !dms->regions)
+	if (!dms)
 		return_0;
+
+	if (!dms->regions)
+		return 0;
+
 	return dms->nr_regions;
 }
 



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* master - libdm: fix <backtrace> in dm_stats_get_nr_regions
@ 2016-07-05 18:35 Bryn Reeves
  0 siblings, 0 replies; 2+ messages in thread
From: Bryn Reeves @ 2016-07-05 18:35 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a9f1278b55b406de66cde0f26b77cbcf1f3796d1
Commit:        a9f1278b55b406de66cde0f26b77cbcf1f3796d1
Parent:        ced707df28a5950c26af9d5529a3c05e10bf217e
Author:        Bryn M. Reeves <bmr@redhat.com>
AuthorDate:    Tue Jul 5 18:33:02 2016 +0100
Committer:     Bryn M. Reeves <bmr@redhat.com>
CommitterDate: Tue Jul 5 19:29:51 2016 +0100

libdm: fix <backtrace> in dm_stats_get_nr_regions

---
 libdm/libdm-stats.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c
index 93b8e0b..ab15589 100644
--- a/libdm/libdm-stats.c
+++ b/libdm/libdm-stats.c
@@ -2132,8 +2132,12 @@ void dm_stats_buffer_destroy(struct dm_stats *dms, char *buffer)
 
 uint64_t dm_stats_get_nr_regions(const struct dm_stats *dms)
 {
-	if (!dms || !dms->regions)
+	if (!dms)
 		return_0;
+
+	if (!dms->regions)
+		return 0;
+
 	return dms->nr_regions;
 }
 



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-05 18:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-05 18:55 master - libdm: fix <backtrace> in dm_stats_get_nr_regions Bryn Reeves
  -- strict thread matches above, loose matches on Subject: below --
2016-07-05 18:35 Bryn Reeves

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.