aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_akaros.h
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2020-09-08 10:20:00 +0300
committerDmitry Vyukov <dvyukov@google.com>2020-09-22 10:12:23 +0200
commita44e0f15f340fdbfd930a463ce76f2f72b44f64a (patch)
tree679207f746a4a3a0fa75161a56b0980b72aea9fc /executor/executor_akaros.h
parent6304883e1b4d193e86093509fe4e6beb152ba80c (diff)
executor/common_linux.h: remove assumption that netlink always returns nonpositive error codes
The code in common_linux.h assumes that nlmsgerr can either be 0 or a negative value in case of an error. However, this is not always the case. For example, some commands of mac80211_hwsim use nonnegative values to indicate success (e.g. HWSIM_CMD_NEW_RADIO returns either a negative error or a nonnegative radio index). Therefore, negation of error code inside netlink_send_ext is not correct. This patch changes this behavior. Now netlink_send_ext returns the exact value it received via netlink.
Diffstat (limited to 'executor/executor_akaros.h')
0 files changed, 0 insertions, 0 deletions