Re: [PATCH] liquidio: Fix wrong return value in cn23xx_get_pf_num()
From: David Miller
Date: Mon Aug 03 2020 - 18:58:11 EST
From: Tianjia Zhang <tianjia.zhang@xxxxxxxxxxxxxxxxx>
Date: Sun, 2 Aug 2020 19:15:44 +0800
> 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@xxxxxxxxxx>
> Signed-off-by: Tianjia Zhang <tianjia.zhang@xxxxxxxxxxxxxxxxx>
Applied.