diff options
author | Tim Chase <[email protected]> | 2014-02-24 13:42:36 -0600 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-03-04 11:44:44 -0800 |
commit | 13a7ba1c2c5572391094800472f4a78899b4b843 (patch) | |
tree | e70016677fd212d7c393dc157243dd52d60c88d2 | |
parent | e78b6da3d06d754e70a02580481275ee8558cd29 (diff) |
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 <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #2141
-rw-r--r-- | module/zfs/zfeature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfeature.c b/module/zfs/zfeature.c index ccd7cb92e..4f4785a0c 100644 --- a/module/zfs/zfeature.c +++ b/module/zfs/zfeature.c @@ -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, |