Skip to content
Commit 1493ab40 authored by Roel Kluin's avatar Roel Kluin Committed by Roland Dreier
Browse files

RDMA/amso1100: Check kmalloc() result in c2_register_device()



dev->ibdev.iwcm allocation may fail, prevent a dereference.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent b1b8afb8
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