]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: tcmu: Adjust parameter in call to tcmu_blocks_release()
authorBodo Stroesser <bostroesser@gmail.com>
Wed, 10 Mar 2021 18:44:58 +0000 (19:44 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Mar 2021 03:18:37 +0000 (23:18 -0400)
commit81ada8b8341539fdafa82b5888b481ece87e330f
treee206ecf3416444e966138bfbb664172199365d6c
parentdde3c40c10e6eb88486b494b96f67cb687cd54d7
scsi: target: tcmu: Adjust parameter in call to tcmu_blocks_release()

In commit 69d783f7b3fd ("scsi: target: tcmu: Replace radix_tree with
XArray") the meaning of last parameter of tcmu_blocks_release() was
changed.  So in the callers we should subtract 1 from the previous
parameter.

Unfortunately that change got lost at one of the two places where
tcmu_blocks_release() is called. That does not lead to any problems, but we
should adjust it anyway.

Link: https://lore.kernel.org/r/20210310184458.10741-1-bostroesser@gmail.com
Signed-off-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c