diff options
| author | 2021-09-27 17:43:44 -0500 | |
|---|---|---|
| committer | 2021-10-04 23:29:38 -0400 | |
| commit | c20bda341946c8ee77baec3bec7c5cd615ddf869 (patch) | |
| tree | 681d29954125775089b7b2ecff93741db47f975b /scripts/basic | |
| parent | scsi: target: usb: Replace enable attr with ops.enable (diff) | |
scsi: target: tcmu: Use struct_size() helper in kmalloc()
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.
Link: https://github.com/KSPP/linux/issues/160
Link: https://lore.kernel.org/r/20210927224344.GA190701@embeddedor
Reviewed-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
