summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-12 13:51:10 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-09 15:37:57 +0000
commit04b7fc4dec4fcb61dbe022bbaffda8ea37c39430 (patch)
tree94bc5f2c2cc84e02fd79467de92377d6a97d0ddb
parent32273f50608e9b98116622e32187cbd139c09716 (diff)
downloadtalos-op-linux-04b7fc4dec4fcb61dbe022bbaffda8ea37c39430.tar.gz
talos-op-linux-04b7fc4dec4fcb61dbe022bbaffda8ea37c39430.zip
NET: sa11x0-ir: fix size of SIR transmit buffer
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>
-rw-r--r--drivers/net/irda/sa1100_ir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c
index 86d296ed69a7..be67bdc0ca02 100644
--- a/drivers/net/irda/sa1100_ir.c
+++ b/drivers/net/irda/sa1100_ir.c
@@ -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;
OpenPOWER on IntegriCloud