]> git.baikalelectronics.ru Git - kernel.git/commit
net/enetc: Fix wrong return value in enetc_psfp_parse_clsflower()
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Sun, 2 Aug 2020 11:15:38 +0000 (19:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 22:57:07 +0000 (15:57 -0700)
commitbe69d3d90fe66485a0ce1caec665ca18b12061fc
treefac87c2c1ee0a4ef92a4c7916fc042373d03ec90
parente739bec7e2191136504034da4202b81cc45f9102
net/enetc: Fix wrong return value in enetc_psfp_parse_clsflower()

In the case of invalid rule, a positive value EINVAL is returned here.
I think this is a typo error. It is necessary to return an error value.

Cc: Po Liu <Po.Liu@nxp.com>
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc_qos.c