diff options
| author | Emil Velikov <[email protected]> | 2011-06-11 13:30:32 +0100 |
|---|---|---|
| committer | Ben Skeggs <[email protected]> | 2011-06-18 14:38:38 +1000 |
| commit | 2905544073f6ec235b44f624c66f52b61221a16c (patch) | |
| tree | 87daa81b07538956e110e84631617be5c1bc5691 /drivers/scsi/mpt3sas/mpi/mpi2_raid.h | |
| parent | 0897554cdd9de8a9f6f93d9ba27c7ebfae286158 (diff) | |
drm/nouveau/pm: Prevent overflow in nouveau_perf_init()
While parsing the perf table, there is no check if
the num of entries read from the vbios is less than
the currently allocated number.
In case of a buggy vbios this will cause overwriting
of kernel memory, causing aditional problems.
Add a simple check in order to prevent the case
Signed-off-by: Emil Velikov <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions