Skip to content
Commit d624613e authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

cxgb4: Check for kvzalloc allocation failure



t4_prep_fw doesn't check for card_fw pointer before store the read data,
which could lead to a NULL pointer dereference if kvzalloc failed.

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 87e5808d
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