[PATCH 1/2] nvmet: fix oops in nvmet_execute_passthru_cmd()

Keith Busch kbusch at kernel.org
Thu Aug 6 11:42:47 EDT 2020


On Thu, Aug 06, 2020 at 12:31:50AM -0700, Chaitanya Kulkarni wrote:
> This patch adds a check in nvmet_execute_passthru_cmd() to prevent the
> following Oops :-

Suggested changelog:

  A passthrough request may be NULL if an invalid namespace is used, or
  if the allocation failed. Check for a valid request before releasing
  it to fix a NULL pointer dereference.



More information about the Linux-nvme mailing list