commit | d624613e422d9bda9e4f066281b1f178ed51f0b1 | [log] [tgz] |
---|---|---|
author | YueHaibing <yuehaibing@huawei.com> | Tue May 22 15:07:18 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu May 24 21:52:44 2018 -0400 |
tree | 3f773841aae53269b72730d3aae15a3d1290fab6 | |
parent | 87e5808d52b65fc5b0bfda209ba8864cc2f933e5 [diff] |
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: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>