Skip to content
Commit 6808c5fb authored by Santosh Y's avatar Santosh Y Committed by Matthew Wilcox
Browse files

NVMe: Prevent possible NULL pointer dereference



kmalloc() used by the nvme_alloc_iod() to allocate memory for 'iod'
can fail. So check the return value.

Signed-off-by: default avatarSantosh Y <santosh.sy@samsung.com>
Signed-off-by: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent 4131f2fc
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