diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-04-25 14:56:48 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2022-05-09 19:14:00 +0300 |
commit | d3f2a14b8906df913cb04a706367b012db94a6e8 (patch) | |
tree | 77bd8b91dc0a2886e41e723544aa5cc2835d25dd /drivers/md/raid5-log.h | |
parent | bfe2b0146c4d0230b68f5c71a64380ff8d361f8b (diff) | |
download | linux-d3f2a14b8906df913cb04a706367b012db94a6e8.tar.xz |
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: 7eada909bfd7 ("dm: add integrity target")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/raid5-log.h')
0 files changed, 0 insertions, 0 deletions