colo-compare: Fix memory leak in packet_enqueue()
commitbdadbb0f74305d1509805936bf9b1ac14eab30e4
authorDerek Su <dereksu@qnap.com>
Fri, 22 May 2020 07:53:57 +0000 (22 15:53 +0800)
committerJason Wang <jasowang@redhat.com>
Thu, 18 Jun 2020 13:05:52 +0000 (18 21:05 +0800)
tree7b155cb52c38dcb58d8d834b1403c6aa6df2f084
parent5bd57eba041fb62c373f89c311936000c115fdd6
colo-compare: Fix memory leak in packet_enqueue()

The patch is to fix the "pkt" memory leak in packet_enqueue().
The allocated "pkt" needs to be freed if the colo compare
primary or secondary queue is too big.

Replace the error_report of full queue with a trace event.

Signed-off-by: Derek Su <dereksu@qnap.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c
net/trace-events