diff options
author | Govindarajulu Varadarajan <[email protected]> | 2018-06-18 10:01:05 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-06-20 08:10:13 +0900 |
commit | 56f772279a762984f6e9ebbf24a7c829faba5712 (patch) | |
tree | f9a2fc742b0482d6acbb7828e1b8b8ec6dd7cf29 /lib/test_overflow.c | |
parent | 8c43bd1706885ba1acfa88da02bc60a2ec16f68c (diff) |
enic: do not overwrite error code
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 <[email protected]>
Fixes: e8588e268509 ("enic: enable rq before updating rq descriptors")
Signed-off-by: Govindarajulu Varadarajan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions