ANDROID: fix build breakage in virtio_transport_common.c

In commit 946c7600fa ("virtio/vsock: Fix accept_queue memory leak"), a
change is made that breaks the build due to previous changes being
reverted in the Android tree to preserve the abi.  Fix this up by
resolving the build error so that the real bugfix still works properly.

Fixes: 946c7600fa ("virtio/vsock: Fix accept_queue memory leak")
Change-Id: Idd5754459814e3e7db7be1581de2af920b402f5a
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2024-12-11 15:57:47 +00:00
parent 58f9413785
commit b7dd20a030

View File

@@ -1201,7 +1201,7 @@ virtio_transport_recv_listen(struct sock *sk, struct virtio_vsock_pkt *pkt,
* Subsequent enqueues would lead to a memory leak.
*/
if (sk->sk_shutdown == SHUTDOWN_MASK) {
virtio_transport_reset_no_sock(t, skb);
virtio_transport_reset_no_sock(t, pkt);
return -ESHUTDOWN;
}