]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
liquidio: Fix wrong return value in cn23xx_get_pf_num()
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Sun, 2 Aug 2020 11:15:44 +0000 (19:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 22:57:31 +0000 (15:57 -0700)
commitaa027850a292ea65524b8fab83eb91a124ad362c
tree82efb69e2208bc44cd7745f34d01fcf9da787feb
parentbace287c55aa7b66b217701d290801ed810702b1
liquidio: Fix wrong return value in cn23xx_get_pf_num()

On an error exit path, a negative error code should be returned
instead of a positive return value.

Fixes: 0c45d7fe12c7e ("liquidio: fix use of pf in pass-through mode in a virtual machine")
Cc: Rick Farrington <ricardo.farrington@cavium.com>
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c