Changeset 8f17503 in mainline


Ignore:
Timestamp:
2011-03-29T20:17:50Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
348c589, ebebd38
Parents:
d011038
Message:

When dropping a packet, drop also the sq_mutex, otherwise the next
invocation of ne2k_send() will self-deadlock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/ne2000/dp8390.c

    rd011038 r8f17503  
    391391       
    392392        if ((size < ETH_MIN_PACK_SIZE) || (size > ETH_MAX_PACK_SIZE_TAGGED)) {
     393                fibril_mutex_unlock(&ne2k->sq_mutex);
    393394                fprintf(stderr, "%s: Frame dropped (invalid size %zu bytes)\n",
    394395                    NAME, size);
Note: See TracChangeset for help on using the changeset viewer.