Skip to content
Commit 8ae5b3a6 authored by Nigel Kirkland's avatar Nigel Kirkland Committed by Keith Busch
Browse files

nvme-fc: Prevent null pointer dereference in nvme_fc_io_getuuid()



The nvme_fc_fcp_op structure describing an AEN operation is initialized with a
null request structure pointer. An FC LLDD may make a call to
nvme_fc_io_getuuid passing a pointer to an nvmefc_fcp_req for an AEN operation.

Add validation of the request structure pointer before dereference.

Signed-off-by: default avatarNigel Kirkland <nkirkland2304@gmail.com>
Reviewed-by: default avatarJames Smart <jsmart2021@gmail.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent 71be8684
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment