ntb: fix possible NULL dereference
kmalloc can fail and we should check for NULL before using the pointer returned by kmalloc. Signed-off-by: NSudip Mukherjee <sudip.mukherjee@codethink.co.uk> Acked-by: NDave Jiang <dave.jiang@intel.com> Signed-off-by: NJon Mason <jdmason@kudzu.us>
Showing
想要评论请 注册 或 登录