scsi: core: Complain if scsi_target_block() fails
authorBart Van Assche <bvanassche@acm.org>
Thu, 1 Aug 2019 22:38:13 +0000 (15:38 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Aug 2019 01:45:10 +0000 (21:45 -0400)
commit94ef80a5f0d72376a0dd2cfed0bd123123b405e2
tree6a24e42e25a0afbd22dd70609f2e80511a489a3c
parent09addb1d169ed2e67a0314e6275b42e7b8605d79
scsi: core: Complain if scsi_target_block() fails

If scsi_target_block() fails that can break the code that calls this
function. Hence complain loudly if scsi_target_block() fails.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c