Mikulas Patocka 8267d8fb48 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>
2020-04-03 13:07:41 -04:00
..
2019-11-12 19:12:07 -07:00
2019-09-16 10:18:01 -04:00
2019-11-12 19:12:07 -07:00
2019-09-04 09:39:22 -04:00
2019-08-23 10:13:12 -04:00
2019-11-20 10:35:31 -05:00
2019-09-12 09:32:31 -04:00
2019-03-12 10:15:18 -07:00
2019-12-09 10:36:44 -08:00