[PATCH] nvme: clear caller pointer on identify failure

Chaitanya Kulkarni chaitanyak at nvidia.com
Wed Mar 6 09:45:46 PST 2024


On 3/6/2024 6:25 AM, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
> 
> The memory allocated for the identifification is freed on failure. Set
> it to NULL so the caller doesn't have a pointer to that freed address.
> 
> Signed-off-by: Keith Busch <kbusch at kernel.org>
> ---

LGTM.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>

-ck




More information about the Linux-nvme mailing list