]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 18:31:25 +0000 (11:31 -0700)
commitd0b0b5736accc270b3844fb04708eefecfb79ef7
treeab344227de94490e87e6332d6a6652d3cd21c529
parent164c9f898bc471ca9ad8fc59eb66d9342b982095
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>
Orabug: 23711389
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c