]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cxgb4: fix adapter crash due to wrong MC size
authorVishal Kulkarni <vishal@chelsio.com>
Wed, 22 Apr 2020 15:50:07 +0000 (21:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 19:41:09 +0000 (12:41 -0700)
commitce222748078592afb51b810dc154531aeba4f512
tree99a05d98ae9e6578eac7207c4249be513894ee8c
parentda0afd1f05e95d3cdbfa091d631aa6603db9402a
cxgb4: fix adapter crash due to wrong MC size

In the absence of MC1, the size calculation function
cudbg_mem_region_size() was returing wrong MC size and
resulted in adapter crash. This patch adds new argument
to cudbg_mem_region_size() which will have actual size
and returns error to caller in the absence of MC1.

Fixes: a1c69520f785 ("cxgb4: collect MC memory dump")
Signed-off-by: Vishal Kulkarni <vishal@chelsio.com>"
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c