aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorWentao Liang <[email protected]>2025-04-22 04:22:02 +0000
committerJohannes Berg <[email protected]>2025-04-23 12:59:04 +0000
commit8e089e7b585d95122c8122d732d1d5ef8f879396 (patch)
tree4c8a64bccda277c1b9c2950aebeab99efbef31d7 /net/unix/sysctl_net_unix.c
parentwifi: plfxlc: Remove erroneous assert in plfxlc_mac_release (diff)
downloadkernel-8e089e7b585d95122c8122d732d1d5ef8f879396.tar.gz
kernel-8e089e7b585d95122c8122d732d1d5ef8f879396.zip
wifi: brcm80211: fmac: Add error handling for brcmf_usb_dl_writeimage()
The function brcmf_usb_dl_writeimage() calls the function brcmf_usb_dl_cmd() but dose not check its return value. The 'state.state' and the 'state.bytes' are uninitialized if the function brcmf_usb_dl_cmd() fails. It is dangerous to use uninitialized variables in the conditions. Add error handling for brcmf_usb_dl_cmd() to jump to error handling path if the brcmf_usb_dl_cmd() fails and the 'state.state' and the 'state.bytes' are uninitialized. Improve the error message to report more detailed error information. Fixes: 71bb244ba2fd ("brcm80211: fmac: add USB support for bcm43235/6/8 chipsets") Cc: [email protected] # v3.4+ Signed-off-by: Wentao Liang <[email protected]> Acked-by: Arend van Spriel <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions