qlcnic: potential NULL dereference in qlcnic_83xx_get_minidump_template()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 May 2016 19:20:04 +0000 (22:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 May 2016 03:44:56 +0000 (23:44 -0400)
commit5f46feab87bb105d6a217d966b327fdc56696802
treee169b1e6f9d9ba111144ee3a5ed96fe353278685
parent685764b108a7e5fe9f5ee213d6a627c1166d7c88
qlcnic: potential NULL dereference in qlcnic_83xx_get_minidump_template()

If qlcnic_fw_cmd_get_minidump_temp() fails then "fw_dump->tmpl_hdr" is
NULL or possibly freed.  It can lead to an oops later.

Fixes: d01a6d3c8ae1 ('qlcnic: Add support to enable capability to extend minidump for iSCSI')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c