diff options
| author | Parthasarathy Bhuvaragan <[email protected]> | 2017-09-29 08:02:54 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-01 03:03:35 +0000 |
| commit | aad06212d36cf34859428a0a279e5c14ee5c9e26 (patch) | |
| tree | 648b7078ed5c0881ba64b2299418daeccdd30c08 /net/switchdev/switchdev.c | |
| parent | ppp: fix __percpu annotation (diff) | |
| download | kernel-aad06212d36cf34859428a0a279e5c14ee5c9e26.tar.gz kernel-aad06212d36cf34859428a0a279e5c14ee5c9e26.zip | |
tipc: use only positive error codes in messages
In commit e3a77561e7d32 ("tipc: split up function tipc_msg_eval()"),
we have updated the function tipc_msg_lookup_dest() to set the error
codes to negative values at destination lookup failures. Thus when
the function sets the error code to -TIPC_ERR_NO_NAME, its inserted
into the 4 bit error field of the message header as 0xf instead of
TIPC_ERR_NO_NAME (1). The value 0xf is an unknown error code.
In this commit, we set only positive error code.
Fixes: e3a77561e7d32 ("tipc: split up function tipc_msg_eval()")
Signed-off-by: Parthasarathy Bhuvaragan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
