commit | 8267d8fb4819afa76b2a54dca48efdda6f0b1910 | [log] [tgz] |
---|---|---|
author | Mikulas Patocka <mpatocka@redhat.com> | Fri Apr 03 13:05:50 2020 -0400 |
committer | Mike Snitzer <snitzer@redhat.com> | Fri Apr 03 13:07:41 2020 -0400 |
tree | 3462cb434ed814e3186fa90efdc51077dae36098 | |
parent | 120c9257f5f19e5d1e87efcbb5531b7cd81b7d74 [diff] |
dm integrity: fix logic bug in integrity tag testing If all the bytes are equal to DISCARD_FILLER, we want to accept the buffer. If any of the bytes are different, we must do thorough tag-by-tag checking. The condition was inverted. Fixes: 84597a44a9d8 ("dm integrity: add optional discard support") Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>