android_kernel_sony_sdm845/net/mac802154
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Miquel Raynal a8758c8a56 net: mac802154: Fix a condition in the receive path
commit f0da47118c7e93cdbbc6fb403dd729a5f2c90ee3 upstream.

Upon reception, a packet must be categorized, either it's destination is
the host, or it is another host. A packet with no destination addressing
fields may be valid in two situations:
- the packet has no source field: only ACKs are built like that, we
  consider the host as the destination.
- the packet has a valid source field: it is directed to the PAN
  coordinator, as for know we don't have this information we consider we
  are not the PAN coordinator.

There was likely a copy/paste error made during a previous cleanup
because the if clause is now containing exactly the same condition as in
the switch case, which can never be true. In the past the destination
address was used in the switch and the source address was used in the
if, which matches what the spec says.

Cc: stable@vger.kernel.org
Fixes: ae531b9475 ("ieee802154: use ieee802154_addr instead of *_sa variants")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220826142954.254853-1-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-15 12:39:45 +02:00
..
cfg.c nl802154: add support for security layer 2015-09-30 13:16:44 +02:00
cfg.h mac802154: introduce mac802154_config_ops 2014-11-02 04:51:06 +01:00
driver-ops.h mac802154: tx: fix synced xmit deadlock 2015-12-10 19:17:11 +01:00
ieee802154_i.h mac802154: Fix memory corruption with global deferred transmit state. 2015-07-30 14:08:55 +02:00
iface.c mac802154: set phy net namespace for new ifaces 2016-09-19 20:19:34 +02:00
Kconfig mac802154: select CRYPTO when needed 2015-05-19 19:35:48 +02:00
llsec.c net: mac802154: Fix general protection fault 2021-04-16 11:59:10 +02:00
llsec.h mac802154: Use skcipher 2016-01-27 20:36:05 +08:00
mac_cmd.c mac802154: constify ieee802154_llsec_ops structure 2016-01-04 20:40:41 +01:00
main.c mac802154: Fixes kernel oops when unloading a radio driver 2016-02-23 20:29:40 +01:00
Makefile mac802154: add trace functionality for driver ops 2015-06-02 19:21:09 +02:00
mib.c mac802154: remove mib lock 2015-05-23 17:57:08 +02:00
rx.c net: mac802154: Fix a condition in the receive path 2022-09-15 12:39:45 +02:00
trace.c mac802154: add trace functionality for driver ops 2015-06-02 19:21:09 +02:00
trace.h mac802154: add trace functionality for driver ops 2015-06-02 19:21:09 +02:00
tx.c mac802154: tx: fix use-after-free 2020-10-01 20:40:18 +02:00
util.c mac802154: util: add stop_device utility function 2015-07-23 17:10:49 +02:00