diff options
author | Tiwei Bie <tiwei.bie@intel.com> | 2018-02-23 19:41:30 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-18 11:18:50 +0100 |
commit | 4c5579483bd56aab3e009c8dac047b2051947299 (patch) | |
tree | 7e30e766878358ceb9bd6cca461809b96e25157e /Makefile | |
parent | c0fac97933c1da286e770e1cf5d4419191401fdc (diff) | |
download | linux-stable-4c5579483bd56aab3e009c8dac047b2051947299.tar.gz linux-stable-4c5579483bd56aab3e009c8dac047b2051947299.tar.bz2 linux-stable-4c5579483bd56aab3e009c8dac047b2051947299.zip |
virtio_ring: fix num_free handling in error case
commit e82df670235138575b37ff0ec24412a471efd97f upstream.
The vq->vq.num_free hasn't been changed when error happens,
so it shouldn't be changed when handling the error.
Fixes: 780bc7903a32 ("virtio_ring: Support DMA APIs")
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions