summaryrefslogtreecommitdiff
path: root/kernel/irq/manage.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-05-14 00:27:29 +0300
committerThomas Gleixner <tglx@linutronix.de>2021-08-10 16:35:20 +0300
commit5a6c76b5de59ed508d7cb133327a7c54e77fed97 (patch)
treea1d29bb94091f9c0f3ef751003169e913b6afb5f /kernel/irq/manage.c
parent61377ec144574313ebfbf31685895a7b9b9b7a9a (diff)
downloadlinux-5a6c76b5de59ed508d7cb133327a7c54e77fed97.tar.xz
genirq/generic_chip: Use struct_size() in kzalloc()
Make use of the struct_size() helper instead of an open-coded version, in order to avoid any potential type mistakes or integer overflows that, in the worst scenario, could lead to heap overflows. This code was detected with the help of Coccinelle and, audited and fixed manually. Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20210513212729.GA214145@embeddedor
Diffstat (limited to 'kernel/irq/manage.c')
0 files changed, 0 insertions, 0 deletions