diff options
author | Chan Shu Tak, Alex <alexchan@task.com.hk> | 2019-12-19 07:16:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-21 06:19:36 +0100 |
commit | af1c0e4e00f3cc76cb136ebf2e2c04e8b6446285 (patch) | |
tree | 813b496e56a412f0dfaf103b279709da5f149eef /drivers | |
parent | net: hisilicon: Fix a BUG trigered by wrong bytes_compl (diff) | |
download | linux-af1c0e4e00f3cc76cb136ebf2e2c04e8b6446285.tar.xz linux-af1c0e4e00f3cc76cb136ebf2e2c04e8b6446285.zip |
llc2: Fix return statement of llc_stat_ev_rx_null_dsap_xid_c (and _test_c)
When a frame with NULL DSAP is received, llc_station_rcv is called.
In turn, llc_stat_ev_rx_null_dsap_xid_c is called to check if it is a NULL
XID frame. The return statement of llc_stat_ev_rx_null_dsap_xid_c returns 1
when the incoming frame is not a NULL XID frame and 0 otherwise. Hence, a
NULL XID response is returned unexpectedly, e.g. when the incoming frame is
a NULL TEST command.
To fix the error, simply remove the conditional operator.
A similar error in llc_stat_ev_rx_null_dsap_test_c is also fixed.
Signed-off-by: Chan Shu Tak, Alex <alexchan@task.com.hk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions