diff options
author | Peter Lieven <pl@kamp.de> | 2016-06-30 11:49:40 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-09-27 17:54:22 +0800 |
commit | 47f9f15831faa549504ab9b035aaea44a02e5f95 (patch) | |
tree | 3beb277c083f7b88b669082268974e7e5afe6fc9 /LICENSE | |
parent | 584613eacb3840c1803e665ed7edd4ac186deced (diff) |
net: limit allocation in nc_sendv_compat
we only need to allocate enough memory to hold the packet. This might be
less than NET_BUFSIZE. Additionally fail early if the packet is larger
than NET_BUFSIZE.
Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions