OpenCloudOS-Kernel/drivers/net/ethernet/mellanox/mlxfw
Dan Carpenter f5165a5492 net/mlxfw: fix a NULL dereference
If we hit this error path we end up returning ERR_PTR(0) which is NULL.
The caller is not expecting that so it results in a NULL dereference.

Fixes: 410ed13cae ("Add the mlxfw module for Mellanox firmware flash process")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Yotam Gigi <yotamg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-14 15:32:18 -04:00
..
Kconfig
Makefile
mlxfw.h
mlxfw_fsm.c
mlxfw_mfa2.c net/mlxfw: fix a NULL dereference 2017-06-14 15:32:18 -04:00
mlxfw_mfa2.h
mlxfw_mfa2_file.h
mlxfw_mfa2_format.h
mlxfw_mfa2_tlv.h
mlxfw_mfa2_tlv_multi.c
mlxfw_mfa2_tlv_multi.h