Commit d3f2a14
dm integrity: fix error code in dm_integrity_ctr()
The "r" variable shadows an earlier "r" that has function scope. It
means that we accidentally return success instead of an error code.
Smatch has a warning for this:
drivers/md/dm-integrity.c:4503 dm_integrity_ctr()
warn: missing error code 'r'
Fixes: 7eada90 ("dm: add integrity target")
Cc: [email protected]
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>1 parent bfe2b01 commit d3f2a14
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4494 | 4494 | | |
4495 | 4495 | | |
4496 | 4496 | | |
4497 | | - | |
4498 | | - | |
4499 | 4497 | | |
4500 | 4498 | | |
4501 | 4499 | | |
| |||
0 commit comments