diff options
author | Govindarajulu Varadarajan <gvaradar@cisco.com> | 2018-06-18 10:01:05 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-20 08:11:31 +0200 |
commit | 4537e64a916783c508fda01c5f0f44bbd342adae (patch) | |
tree | f289a196d55a54d18779b7da79416d6751dc8bd1 /net/ipv6 | |
parent | d3e3e34f212aad219d03cdf1b6f8a068753f661f (diff) |
enic: do not overwrite error code
commit 56f772279a762984f6e9ebbf24a7c829faba5712 upstream.
In failure path, we overwrite err to what vnic_rq_disable() returns. In
case it returns 0, enic_open() returns success in case of error.
Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Fixes: e8588e268509 ("enic: enable rq before updating rq descriptors")
Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions