android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nathan Chancellor 1d7f9ad781 wifi: brcmsmac: Remove const from tbl_ptr parameter in wlc_lcnphy_common_read_table()
commit 81284e86bf8849f8e98e8ead3ff5811926b2107f upstream.

A new warning in clang [1] complains that diq_start in
wlc_lcnphy_tx_iqlo_cal() is passed uninitialized as a const pointer to
wlc_lcnphy_common_read_table():

  drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:2728:13: error: variable 'diq_start' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
   2728 |                                                      &diq_start, 1, 16, 69);
        |                                                       ^~~~~~~~~

The table pointer passed to wlc_lcnphy_common_read_table() should not be
considered constant, as wlc_phy_read_table() is ultimately going to
update it. Remove the const qualifier from the tbl_ptr to clear up the
warning.

Cc: stable@vger.kernel.org
Closes: https://github.com/ClangBuiltLinux/linux/issues/2108
Fixes: 5b435de0d7 ("net: wireless: add brcm80211 drivers")
Link: 00dacf8c22 [1]
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>>
Link: https://patch.msgid.link/20250715-brcmsmac-fix-uninit-const-pointer-v1-1-16e6a51a8ef4@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:21:31 +02:00
..
appletalk
arcnet arcnet: Add NULL check in com20020pci_probe() 2025-04-10 14:29:43 +02:00
bonding bonding: report duplicate MAC address in all situations 2025-06-04 14:32:32 +02:00
caif caif_virtio: fix wrong pointer check in cfv_probe() 2025-03-13 12:43:29 +01:00
can can: kvaser_usb: Assign netdev.dev_port based on device channel index 2025-08-28 16:21:20 +02:00
dsa net: dsa: b53: fix IP_MULTICAST_CTRL on BCM5325 2025-08-28 16:21:27 +02:00
ethernet net: fec: allow disable coalescing 2025-08-28 16:21:26 +02:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event 2024-11-08 16:20:51 +01:00
ieee802154 ieee802154: ca8210: Use proper setters and getters for bitwise types 2025-06-04 14:32:31 +02:00
ipvlan
netdevsim
phy net: phy: smsc: add proper reset flags for LAN8710A 2025-08-28 16:21:29 +02:00
plip
ppp pptp: fix pptp_xmit() error path 2025-08-28 16:21:22 +02:00
slip slip: make slhc_remember() more robust against malicious packets 2024-11-08 16:20:46 +01:00
team team: better TEAM_OPTION_TYPE_STRING validation 2025-03-13 12:43:12 +01:00
usb usb: net: sierra: check for no status endpoint 2025-08-28 16:21:16 +02:00
vmxnet3
wan
wimax
wireless wifi: brcmsmac: Remove const from tbl_ptr parameter in wlc_lcnphy_common_read_table() 2025-08-28 16:21:31 +02:00
xen-netback net/xen-netback: prevent UAF in xenvif_flush_hash() 2025-02-01 18:18:53 +01:00
dummy.c
eql.c
geneve.c geneve: Suppress list corruption splat in geneve_destroy_tunnels(). 2025-03-13 12:43:22 +01:00
gtp.c gtp: Suppress list corruption splat in gtp_net_exit_batch_rtnl(). 2025-03-13 12:43:22 +01:00
ifb.c
Kconfig drivers: net: Fix Kconfig indentation, continued 2024-11-08 16:20:35 +01:00
LICENSE.SRC
loopback.c net: loopback: Avoid sending IP packets without an Ethernet header 2025-03-13 12:43:24 +01:00
macsec.c macsec: don't increment counters for an unrelated SA 2024-11-08 16:20:49 +01:00
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c tun: revert fix group permission check 2025-03-13 12:43:06 +01:00
veth.c
virtio_net.c virtio-net: ensure the received length does not exceed allocated size 2025-08-28 16:21:16 +02:00
vrf.c vrf: Drop existing dst reference in vrf_ip6_input_dst 2025-08-28 16:21:20 +02:00
vsockmon.c
vxlan.c vxlan: Do not treat dst cache initialization errors as fatal 2025-06-27 11:02:55 +01:00
xen-netfront.c xen/netfront: fix crash when removing device 2024-12-19 18:05:05 +01:00