Fix zap_lookup() in feature_is_supported().

The length (number of integers) argument passed to zap_lookup was wrong;
likely as a result of performing stack-reduction on the function.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2141
This commit is contained in:
Tim Chase 2014-02-24 13:42:36 -06:00 committed by Brian Behlendorf
parent e78b6da3d0
commit 13a7ba1c2c

View File

@ -204,7 +204,7 @@ feature_is_supported(objset_t *os, uint64_t obj, uint64_t desc_obj,
char *desc = "";
if (zap_lookup(os, desc_obj, za->za_name,
1, sizeof (buf), buf) == 0)
1, MAXPATHLEN, buf) == 0)
desc = buf;
VERIFY(nvlist_add_string(unsup_feat,