mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 21:32:06 +07:00
32043fa065
Currently the copy_to_user of data in the gentry struct is copying
uninitiaized data in field _pad from the stack to userspace.
Fix this by explicitly memset'ing gentry to zero, this also will zero any
compiler added padding fields that may be in struct (currently there are
none).
Detected by CoverityScan, CID#200783 ("Uninitialized scalar variable")
Fixes:
|
||
---|---|---|
.. | ||
amd.c | ||
centaur.c | ||
cleanup.c | ||
cyrix.c | ||
generic.c | ||
if.c | ||
Makefile | ||
mtrr.c | ||
mtrr.h |