mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-11 10:17:49 +00:00
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:
parent
0958726ebb
commit
e436b993a9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user