diff options
author | Jo-Philipp Wich <jo@mein.io> | 2024-07-11 13:24:53 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2024-07-11 14:08:01 +0200 |
commit | 115a84fa3c13eb9524089b48d4fa794222de4bfc (patch) | |
tree | b015262d242a155c278f2b19ae066d2063703b13 /lib/rtnl.c | |
parent | 1a8a0bcf725520820802ad433db22d8f64fbed6c (diff) |
nl80211: gracefully handle illegal netlink error code
Some generic netlink commands, e.g. `HWSIM_CMD_NEW_RADIO` might reply with
a bogus netlink error message containing a positive error code, leading
to an infinite loop in `uc_nl_request()`.
Gracefully deal with such occurrences by remapping the error code to
`NLE_RANGE` with a custom message.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/rtnl.c')
0 files changed, 0 insertions, 0 deletions