Skip to content

Commit

Permalink
NET: sa11x0-ir: fix size of SIR transmit buffer
Browse files Browse the repository at this point in the history
The SIR transmit buffer was being allocated as 4000 bytes.  IrDA now
has constants for the buffer sizes, and defines the maximum wrapped
SIR packet to be 4269 bytes as indicated by IRDA_SIR_MAX_FRAME.  Use
this definition to allocate the transmit buffer instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Feb 9, 2012
1 parent 32273f5 commit 04b7fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/irda/sa1100_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ static int sa1100_irda_probe(struct platform_device *pdev)
err = sa1100_irda_init_iobuf(&si->rx_buff, 14384);
if (err)
goto err_mem_5;
err = sa1100_irda_init_iobuf(&si->tx_buff, 4000);
err = sa1100_irda_init_iobuf(&si->tx_buff, IRDA_SIR_MAX_FRAME);
if (err)
goto err_mem_5;

Expand Down

0 comments on commit 04b7fc4

Please sign in to comment.