diff options
author | Tim Chase <[email protected]> | 2014-10-18 22:50:01 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-01-21 16:35:14 -0800 |
commit | b0cf0676c0beb5dcb149774a3264580a18304ac1 (patch) | |
tree | b4ca61b6a34a60f80dcfcc5eb6e6645f814b446b /META | |
parent | 841c9d43c725334a0a4b6174b6e1adea24f16cdd (diff) |
Fix removal of SA in sa_modify_attrs()
The sa_modify_attrs() function can add, remove or replace an SA.
The main loop in the function uses the index "i" to iterate over the
existing SAs and uses the index "j" for writing them into a new buffer
via SA_ADD_BULK_ATTR(). The write index, "j" is incremented on remove
(SA_REMOVE) operations which leads to a corruption in the new SA buffer.
This patch remove the increment for SA_REMOVE operations.
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tim Chase <[email protected]>
Signed-off-by: Ned Bass <[email protected]>
Closes #3028
Diffstat (limited to 'META')
0 files changed, 0 insertions, 0 deletions