mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 09:32:33 +00:00
Revert bugfix e7852674d5
until tested or until after the release.
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
parent
a3efecb847
commit
371572dff4
@ -1268,9 +1268,8 @@ static ssize_t usbnet_receive(VLANClientState *nc, const uint8_t *buf, size_t si
|
|||||||
|
|
||||||
if (is_rndis(s)) {
|
if (is_rndis(s)) {
|
||||||
msg = (struct rndis_packet_msg_type *) s->in_buf;
|
msg = (struct rndis_packet_msg_type *) s->in_buf;
|
||||||
if (s->rndis_state != RNDIS_DATA_INITIALIZED) {
|
if (!s->rndis_state == RNDIS_DATA_INITIALIZED)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
if (size + sizeof(struct rndis_packet_msg_type) > sizeof(s->in_buf))
|
if (size + sizeof(struct rndis_packet_msg_type) > sizeof(s->in_buf))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@ -1303,7 +1302,7 @@ static int usbnet_can_receive(VLANClientState *nc)
|
|||||||
{
|
{
|
||||||
USBNetState *s = DO_UPCAST(NICState, nc, nc)->opaque;
|
USBNetState *s = DO_UPCAST(NICState, nc, nc)->opaque;
|
||||||
|
|
||||||
if (is_rndis(s) && s->rndis_state != RNDIS_DATA_INITIALIZED) {
|
if (is_rndis(s) && !s->rndis_state == RNDIS_DATA_INITIALIZED) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user