Re: [PATCH 1/1] scsi: ufs: core: Fix error handler encryption support

From: Bart Van Assche

Date: Wed Dec 10 2025 - 12:45:08 EST


On 12/9/25 10:48 PM, Christoph Hellwig wrote:
As mentioned last round, why are you even calling into the crypto
code here? Calling that for a request without a crypt context,
which includes all of them that do not transfer any data makes no
sense to start with.

ufshcd_prepare_lrbp_crypto() only has one caller. Moving the new test
from inside ufshcd_prepare_lrbp_crypto() into its caller should be easy.

Thanks,

Bart.