re: sched: check negative err value to safe one level of indent

2 messages, 2 authors, 2017-02-14 · open the first message on its own page

re: sched: check negative err value to safe one level of indent

From: Colin Ian King <hidden>
Date: 2017-02-14 15:12:06

Jiro,

A recent static analysis run with CoverityScan identified a potential
change in functionality with your recent commit "sched: check negative
err value to safe one level of indent" that landed in linux-next.

The original path for case RTM_DELTFILTER would always goto errout, but
your commit seems to goto errout only if err is non-zero zero and the
err == 0 path falls through to the RTM_GETTFILTER case.  I'm not sure if
this is an intentional change in behaviour.  From what I can make out,
there is a missing goto errout before the fall-through to RTM_GETTFILTER.

Colin

Re: sched: check negative err value to safe one level of indent

From: Jiri Pirko <jiri@resnulli.us>
Date: 2017-02-14 15:20:50

Tue, Feb 14, 2017 at 04:10:13PM CET, colin.king@canonical.com wrote:
Jiro,

A recent static analysis run with CoverityScan identified a potential
change in functionality with your recent commit "sched: check negative
err value to safe one level of indent" that landed in linux-next.

The original path for case RTM_DELTFILTER would always goto errout, but
your commit seems to goto errout only if err is non-zero zero and the
err == 0 path falls through to the RTM_GETTFILTER case.  I'm not sure if
this is an intentional change in behaviour.  From what I can make out,
there is a missing goto errout before the fall-through to RTM_GETTFILTER.
Will fix. Thanks.

Colin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help