diff options
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/dht/src/dht-helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-helper.c b/xlators/cluster/dht/src/dht-helper.c index 1b49046ce19..9816c1784cd 100644 --- a/xlators/cluster/dht/src/dht-helper.c +++ b/xlators/cluster/dht/src/dht-helper.c @@ -320,6 +320,9 @@ int dht_stat_merge (xlator_t *this, struct stat *to, struct stat *from, xlator_t *subvol) { + if (!from || !to) + return 0; + to->st_dev = from->st_dev; dht_itransform (this, subvol, from->st_ino, &to->st_ino); |