david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Avoid double free on I/O buffer when rtl_transmit() returns failure.

Convert printf() to DBG(); printf() is not allowed in drivers.
This commit is contained in:
Michael Brown 2007-07-03 14:44:33 +01:00
parent 0958726ebb
commit e436b993a9
1 changed files with 1 additions and 2 deletions

View File

@ -380,8 +380,7 @@ static int rtl_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) {
/* Check for space in TX ring */
if ( rtl->tx.iobuf[rtl->tx.next] != NULL ) {
printf ( "TX overflow\n" );
free_iob ( iobuf );
DBG ( "TX overflow\n" );
return -ENOBUFS;
}