aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorArend Van Spriel <[email protected]>2017-11-25 20:39:25 +0000
committerKalle Valo <[email protected]>2017-12-02 15:22:47 +0000
commit5c3de777bdaf48bd0cfb43097c0d0fb85056cab7 (patch)
tree61bbb5c6e5be90ef7f501116334d5502210b3b59 /net/unix/af_unix.c
parentMerge tag 'iwlwifi-for-kalle-2017-11-28' of git://git.kernel.org/pub/scm/linu... (diff)
downloadkernel-5c3de777bdaf48bd0cfb43097c0d0fb85056cab7.tar.gz
kernel-5c3de777bdaf48bd0cfb43097c0d0fb85056cab7.zip
brcmfmac: change driver unbind order of the sdio function devices
In the function brcmf_sdio_firmware_callback() the driver is unbound from the sdio function devices in the error path. However, the order in which it is done resulted in a use-after-free issue (see brcmf_ops_sdio_remove() in bcmsdh.c). Hence change the order and first unbind sdio function #2 device and then unbind sdio function #1 device. Cc: [email protected] # v4.12.x Fixes: 7a51461fc2da ("brcmfmac: unbind all devices upon failure in firmware callback") Reported-by: Stefan Wahren <[email protected]> Reviewed-by: Hante Meuleman <[email protected]> Reviewed-by: Pieter-Paul Giesberts <[email protected]> Reviewed-by: Franky Lin <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions