Re: [PATCH v2 net] strparser: Fix sign of err codes

2018-03-27 Thread David Miller
From: Dave Watson Date: Tue, 27 Mar 2018 08:23:52 -0700 > strp_parser_err is called with a negative code everywhere, which then > calls abort_parser with a negative code. strp_msg_timeout calls > abort_parser directly with a positive code. Negate ETIMEDOUT > to match

[PATCH v2 net] strparser: Fix sign of err codes

2018-03-27 Thread Dave Watson
strp_parser_err is called with a negative code everywhere, which then calls abort_parser with a negative code. strp_msg_timeout calls abort_parser directly with a positive code. Negate ETIMEDOUT to match signed-ness of other calls. The default abort_parser callback, strp_abort_strp, sets