mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00: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 |