Skip to content
Commit 9ef63f31 authored by Pan Bian's avatar Pan Bian Committed by Doug Ledford
Browse files

iw_cxgb4: check return value of alloc_skb



Function alloc_skb() will return a NULL pointer when there is no enough
memory. However, the return value of alloc_skb() is directly used
without validation in function send_fw_pass_open_req(). This patches
checks the return value of alloc_skb() against NULL.

Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 27b0b832
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