Re: [PATCH] scsi: target: iblock: Fix wrong PR ops NULL check for PREEMPT/RELEASE

Mike Christie <[email protected]>
Newsgroups org.kernel.vger.linux-scsi,org.kernel.vger.target-devel
Message-ID <[email protected]>

On 7/24/26 2:58 AM, [email protected] wrote:
> From: TanZheng <[email protected]>
> 
> In the iblock_execute_pr_out function, PRO_PREEMPT, PRO_PREEMPT_AND_ABORT
> and PRO_RELEASE all perform callback capability checks through
> ops->pr_clear. The error check allows unimplemented hooks to pass through
> the gate, resulting  dereferencing a NULL function pointer.
> 
> Check whether the hooks that need to be called are supported.
> 
> Fixes: 394f81184882 ("scsi: target: Add block PR support to iblock")
> Signed-off-by: TanZheng <[email protected]>

Reviewed-by: Mike Christie <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.