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

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Thu Aug 6 15:29:14 EDT 2020


On 8/6/20 8:43 AM, Keith Busch wrote:
> 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.
> 
Okay, will send V2.



More information about the Linux-nvme mailing list