OSDN Git Service

ice: Fix error return code in ice_add_prof()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 27 Apr 2020 12:12:28 +0000 (12:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 03:29:09 +0000 (20:29 -0700)
commitf8d530ac29fe9248f5e58ca5bcf4c368f8393ccf
tree6582d1fd108ce0a1c9df18d058c8e55830f4730d
parent654cad8b6a17dcb00077070b27bc65873951a568
ice: Fix error return code in ice_add_prof()

Fix to return a error code from the error handling case
instead of 0, as done elsewhere in this function.

Fixes: 31ad4e4ee1e4 ("ice: Allocate flow profile")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ice/ice_flex_pipe.c