diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2013-06-06 15:20:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-11 02:46:21 -0700 |
commit | 288cfe78c8173f35c7a94f06859f60b3693d828a (patch) | |
tree | f84bd0f51046e6372ca390ba3302ae60c3a6bc28 /crypto/tcrypt.c | |
parent | 05c05351943cc03bf5c77e86953b24ae6fb21368 (diff) | |
download | op-kernel-dev-288cfe78c8173f35c7a94f06859f60b3693d828a.zip op-kernel-dev-288cfe78c8173f35c7a94f06859f60b3693d828a.tar.gz |
vhost: fix ubuf_info cleanup
vhost_net_clear_ubuf_info didn't clear ubuf_info
after kfree, this could trigger double free.
Fix this and simplify this code to make it more robust: make sure
ubuf info is always freed through vhost_net_clear_ubuf_info.
Reported-by: Tommi Rantala <tt.rantala@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/tcrypt.c')
0 files changed, 0 insertions, 0 deletions