Re: [PATCH 1/5] scsi: ufs: drop the unreachable offset check
From: Bart Van Assche
Date: Thu Nov 05 2026 - 12:57:34 EST
On 11/5/26 3:33 AM, shao.mingyin@xxxxxxxxxx wrote:
ufshcd_read_desc_param() rejects param_offset >= buff_len before itReviewed-by: Bart Van Assche <bvanassche@xxxxxxx>
reaches the is_kmalloc block, so the repeated check there can never be
true. Keep only the memcpy().