mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
ANDROID: fix build breakage in virtio_transport_common.c
In commit946c7600fa("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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user