summaryrefslogtreecommitdiff
path: root/libre/lirc-libre/lirc_atiusb-kfifo.patch
blob: a64984dce8c2ce11ceb176f3f2db62a6e8c5df82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From ec3c5660e67c122e2d5eb9cfa838c9709fccf8e0 Mon Sep 17 00:00:00 2001
From: Jason Martin <publicmsu@gmail.com>
Date: Fri, 3 Jun 2011 00:12:51 -0400
Subject: [PATCH] lirc_atiusb: fix buffer alloc to work with new kfifo

I came across posts with regards to lirc_atiusb and its compatibility
with newer kernels, and their use of kfifo.I spent a little bit of time
this evening, and was able to correct the issues with the driver, and
now have a functioning lirc_atiusb device under the 2.6.38 kernel.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
---
 drivers/lirc_atiusb/lirc_atiusb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/lirc_atiusb/lirc_atiusb.c b/drivers/lirc_atiusb/lirc_atiusb.c
index 52080de..bf2b631 100644
--- a/drivers/lirc_atiusb/lirc_atiusb.c
+++ b/drivers/lirc_atiusb/lirc_atiusb.c
@@ -1048,7 +1048,7 @@ static struct atirf_dev *new_irctl(struct usb_interface *intf)
 		goto new_irctl_failure_check;
 	}
 
-	if (lirc_buffer_init(driver->rbuf, dclen, 1)) {
+	if (lirc_buffer_init(driver->rbuf, dclen, 2)) {
 		mem_failure = 4;
 		goto new_irctl_failure_check;
 	}
-- 
1.7.0.1