scsi: bnx2fc: Add missing annotation for bnx2fc_abts_cleanup()
authorJules Irenge <jbi.octave@gmail.com>
Sat, 11 Apr 2020 00:19:31 +0000 (01:19 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Apr 2020 16:56:37 +0000 (12:56 -0400)
commitbc834e074e36262d62a9e26742ed5a5246a469eb
treeb9b90c6b6017a724cf059e191e661a71242942a9
parentd1ec20a55f6c8ce485fd298a015ec83d7e5326d8
scsi: bnx2fc: Add missing annotation for bnx2fc_abts_cleanup()

Sparse reports the following warning:

  warning: context imbalance in bnx2fc_abts_cleanup() - unexpected unlock

The root cause is the missing annotation at bnx2fc_abts_cleanup(). Add the
missing __must_hold(&tgt->tgt_lock) annotation.

Link: https://lore.kernel.org/r/20200411001933.10072-8-jbi.octave@gmail.com
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_io.c