summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2016-05-16 10:26:36 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-06-27 15:31:50 -0700
commit0e8d95f8965dc2e6f22e5b321b73de7b0396dc4a (patch)
tree9d50068925a25f58e97cd340a74d691a8b8adde4 /net/unix/af_unix.c
parentf980d445e5ae71c64e1a8e07e9cbf7bb285d1106 (diff)
i40evf: don't overflow buffer
If the user adds an obscene amount of MAC addresses, the driver will run into the situation where it has too many address requests to fit into a single PF message. The driver checks for this case, and calculates the maximum number of messages that it can send. Then it completely ignores this count and overflows the buffer. Fix this by checking the address count and bailing out of the loop at the appropriate time. Change-ID: If8dcbb04602c75941dc0cd8309065e1de9ca791c Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions