aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorGuilherme G. Piccoli <[email protected]>2022-09-09 19:42:14 +0000
committerArd Biesheuvel <[email protected]>2022-09-20 16:42:55 +0000
commit7da5b13dccd99cfdc42940fc7adcb88647023292 (patch)
treeae56aa7020ffcb03305f147bac40d3841aa3e202 /drivers/net/dsa/dsa_loop.c
parentefi: capsule-loader: Fix use-after-free in efi_capsule_write (diff)
downloadkernel-7da5b13dccd99cfdc42940fc7adcb88647023292.tar.gz
kernel-7da5b13dccd99cfdc42940fc7adcb88647023292.zip
efi: efibc: Guard against allocation failure
There is a single kmalloc in this driver, and it's not currently guarded against allocation failure. Do it here by just bailing-out the reboot handler, in case this tentative allocation fails. Fixes: 416581e48679 ("efi: efibc: avoid efivar API for setting variables") Signed-off-by: Guilherme G. Piccoli <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions