Removed the packet frees for failure conditions in hard_start(). Once

msd->txframe() is called, the MSD owns the frame and is responsible for
freeing it.
This commit is contained in:
mark 2000-01-28 03:21:20 +00:00
parent 560a9bb886
commit 2a0a52f1b7
1 changed files with 2 additions and 2 deletions

View File

@ -374,13 +374,13 @@ int p80211knetdev_hard_start_xmit( struct sk_buff *skb, netdevice_t *netdev)
WLAN_LOG_DEBUG0(3, "txframe returned alloc_fail\n");
result = 0;
netdev->tbusy = 0;
p80211pb_free(pb);
/* p80211pb_free(pb); driver's responsibility */
} else {
/* buffer full or queue busy */
WLAN_LOG_DEBUG0(3, "txframe returned full or busy\n");
result = 1;
netdev->tbusy = 0;
p80211pb_free(pb);
/* p80211pb_free(pb); driver's responsibility */
}
}
}