vhost: fix file struct leakage
authorPavel Boldin <pboldin@mirantis.com>
Mon, 23 Mar 2015 12:53:45 +0000 (14:53 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 26 Mar 2015 21:33:41 +0000 (22:33 +0100)
commit38f4f01f8fe7aba72f858fd6faa0126edc645fe1
treebe490f0874b57ef34daf40f29a5acfc5b1ffc277
parent5c561b0a234fdf81b012fca96065985c548fcc95
vhost: fix file struct leakage

Due to increased `struct file's reference counter subsequent call
to `filp_close' does not free the `struct file'. Prepend `fput' call
to decrease the reference counter.

Signed-off-by: Pavel Boldin <pboldin@mirantis.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
lib/librte_vhost/eventfd_link/eventfd_link.c