diff options
author | Yuval Mintz <[email protected]> | 2014-01-05 18:33:53 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-01-05 20:22:25 -0500 |
commit | 9dfef3adaebb42163d691be73e05b12da440cbe5 (patch) | |
tree | f8989f46cdfb6901e0c07f344f9d4b5c23a9f7a4 /lib/memory-notifier-error-inject.c | |
parent | 5b622918cd6f4ff5b5200ea6b2e48ae2fa6ad09e (diff) |
bnx2x: fix AFEX memory overflow
There are 2 different (related) flows in the slowpath configuration
that utilize the same pointer and cast it to different structs;
This is obviously incorrect as the intended allocated memory is that
of the smaller struct, possibly causing the flow utilizing the larger
struct to corrupt other slowpath configuration.
Since both flows are exclusive, set the allocated memory to be a union
of both structs.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Yuval Mintz <[email protected]>
Signed-off-by: Ariel Elior <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions